Commit 895500a2 by Ed Schonberg Committed by Pierre-Marie de Rodat

[Ada] Set scope of component of subtype

2018-05-29  Ed Schonberg  <schonberg@adacore.com>

gcc/ada/

	* sem_ch3.adb: Set scope of component of subtype.

From-SVN: r260880
parent 14f8ba9a
2018-05-29 Ed Schonberg <schonberg@adacore.com>
* sem_ch3.adb: Set scope of component of subtype.
2018-05-29 Ed Schonberg <schonberg@adacore.com>
* exp_unst.adb (Visit_Node): Exclude selected components whose prefix
carry no type. Such selected components appear in unit names that are
child units, both in the specification and possibly in an end label for
......
......@@ -14630,9 +14630,12 @@ package body Sem_Ch3 is
Set_Comes_From_Source (New_Compon, False);
-- But it is a real entity, and a birth certificate must be properly
-- registered by entering it into the entity list.
-- registered by entering it into the entity list, and setting its
-- scope to the given subtype. This turns out to be useful for the
-- LLVM code generator, but that scope is not used otherwise.
Enter_Name (New_Compon);
Set_Scope (New_Compon, Subt);
return New_Compon;
end Create_Component;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment