mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-10 11:10:53 +08:00
[Ada] Fix spurious error on child library-level subprogram with aspects
gcc/ada/ * sem_ch10.adb (Analyze_Compilation_Unit): Move aspects from body to the newly created spec.
This commit is contained in:
parent
1cc9ecae0a
commit
91edb3f66c
@ -828,6 +828,7 @@ package body Sem_Ch10 is
|
||||
-- of the child unit does not act as spec any longer.
|
||||
|
||||
Set_Acts_As_Spec (N, False);
|
||||
Move_Aspects (From => Unit_Node, To => Unit (Lib_Unit));
|
||||
Set_Is_Child_Unit (Defining_Entity (Unit_Node));
|
||||
Set_Debug_Info_Needed (Defining_Entity (Unit (Lib_Unit)));
|
||||
Set_Comes_From_Source_Default (SCS);
|
||||
|
Loading…
x
Reference in New Issue
Block a user