* freeze.adb (Check_Component_Storage_Order): Get full view of
component type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235716
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
* checks.adb, freeze.adb, sem_res.adb, s-stposu.adb, repinfo.adb:
-- the attribute definition clause is attached to the first subtype.
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
(First_Subtype (Comp_Type),
Attribute_Scalar_Storage_Order);