Commit a25ad01c by Thomas Quinot Committed by Arnaud Charlet

freeze.adb (Check_Component_Storage_Order): Get full view of component type.

2016-05-02  Thomas Quinot  <quinot@adacore.com>

	* freeze.adb (Check_Component_Storage_Order): Get full view of
	component type.

From-SVN: r235716
parent 558fbeb0
2016-05-02 Thomas Quinot <quinot@adacore.com>
* freeze.adb (Check_Component_Storage_Order): Get full view of
component type.
2016-05-02 Hristian Kirtchev <kirtchev@adacore.com> 2016-05-02 Hristian Kirtchev <kirtchev@adacore.com>
* checks.adb, freeze.adb, sem_res.adb, s-stposu.adb, repinfo.adb: * checks.adb, freeze.adb, sem_res.adb, s-stposu.adb, repinfo.adb:
......
...@@ -1242,6 +1242,13 @@ package body Freeze is ...@@ -1242,6 +1242,13 @@ package body Freeze is
-- the attribute definition clause is attached to the first subtype. -- the attribute definition clause is attached to the first subtype.
Comp_Type := Base_Type (Comp_Type); Comp_Type := Base_Type (Comp_Type);
-- If the base type is incomplete or private, go to full view if known
if Present (Underlying_Type (Comp_Type)) then
Comp_Type := Underlying_Type (Comp_Type);
end if;
Comp_ADC := Get_Attribute_Definition_Clause Comp_ADC := Get_Attribute_Definition_Clause
(First_Subtype (Comp_Type), (First_Subtype (Comp_Type),
Attribute_Scalar_Storage_Order); Attribute_Scalar_Storage_Order);
......
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