2015-01-07 Javier Miranda <miranda@adacore.com>
* exp_disp.adb (Expand_Interface_Conversion): Adding missing
generation of accessibility check.
2015-01-07 Ed Schonberg <schonberg@adacore.com>
* sem_ch3.adb (Derived_Type_Declaration): In the case of an
illegal completion from a class- wide type, set etype of the
derived type properly to prevent cascaded errors.
From-SVN: r219283
+2015-01-07 Javier Miranda <miranda@adacore.com>
+
+ * exp_disp.adb (Expand_Interface_Conversion): Adding missing
+ generation of accessibility check.
+
+2015-01-07 Ed Schonberg <schonberg@adacore.com>
+
+ * sem_ch3.adb (Derived_Type_Declaration): In the case of an
+ illegal completion from a class- wide type, set etype of the
+ derived type properly to prevent cascaded errors.
+
2015-01-07 Robert Dewar <dewar@adacore.com>
* prj.ads, i-cpoint.adb, freeze.adb, ghost.adb, prj-err.adb: Minor
if Is_Access_Type (Etype (Expression (N))) then
+ Apply_Accessibility_Check
+ (N => Expression (N),
+ Typ => Etype (N),
+ Insert_Node => N);
+
-- Generate: Func (Address!(Expression))
Rewrite (N,
Taggd := Is_Tagged_Type (Parent_Type);
- -- Perhaps the parent type should be changed to the class-wide type's
- -- specific type in this case to prevent cascading errors ???
+ -- Set the parent type to the class-wide type's specific type
+ -- in this case to prevent cascading errors
if Present (Extension) and then Is_Class_Wide_Type (Parent_Type) then
Error_Msg_N ("parent type must not be a class-wide type", Indic);
+ Set_Etype (T, Etype (Parent_Type));
return;
end if;