It's an assertion on the name of an instance of a generic child unit and
it needs to cope with a renaming of the unit.
gcc/ada/
* sem_ch12.adb (Instantiate_Formal_Package): Accept renamings of a
generic parent that is a child unit for the abbreviated instance.
if Is_Child_Unit (Gen_Parent) then
I_Nam :=
New_Copy_Tree (Name (Original_Node (Analyzed_Formal)));
- pragma Assert (Entity (I_Nam) = Gen_Parent);
+ pragma Assert (Entity (I_Nam) = Gen_Parent
+ or else Renamed_Entity (Entity (I_Nam)) = Gen_Parent);
else
I_Nam :=