From: Ed Schonberg Date: Wed, 20 Aug 2008 13:24:25 +0000 (+0200) Subject: sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag. X-Git-Tag: releases/gcc-4.4.0~3044 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2c4d56de258bc49da7f7349bedadd38af003a93;p=thirdparty%2Fgcc.git sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag. 2008-08-20 Ed Schonberg * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag. From-SVN: r139290 --- diff --git a/gcc/ada/sem_ch8.adb b/gcc/ada/sem_ch8.adb index d943cbc60feb..25c21d936679 100644 --- a/gcc/ada/sem_ch8.adb +++ b/gcc/ada/sem_ch8.adb @@ -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)));