sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
2008-08-20 Ed Schonberg <schonberg@adacore.com> * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag. From-SVN: r139290
This commit is contained in:
parent
89da39ee52
commit
b2c4d56de2
1 changed files with 2 additions and 0 deletions
|
@ -1965,9 +1965,11 @@ package body Sem_Ch8 is
|
|||
|
||||
-- Most common case: subprogram renames subprogram. No body is generated
|
||||
-- in this case, so we must indicate the declaration is complete as is.
|
||||
-- and inherit various attributes of the renamed subprogram.
|
||||
|
||||
if No (Rename_Spec) then
|
||||
Set_Has_Completion (New_S);
|
||||
Set_Is_Imported (New_S, Is_Imported (Entity (Nam)));
|
||||
Set_Is_Pure (New_S, Is_Pure (Entity (Nam)));
|
||||
Set_Is_Preelaborated (New_S, Is_Preelaborated (Entity (Nam)));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue