if Is_Tagged_Type (Derived_Type) then
Set_No_Tagged_Streams_Pragma
(Derived_Type, No_Tagged_Streams_Pragma (Parent_Type));
+
+ -- Propagate information about constructor dependence from parent
+
+ Set_Needs_Construction
+ (Derived_Type,
+ Needs_Construction (Parent_Type));
end if;
-- If the parent has primitive routines and may have not-seen-yet aspect
Propagate_Concurrent_Flags (T, Etype (Component));
- -- Propagate information about constructor dependence
-
- if Ekind (Etype (Component)) /= E_Void
- and then Needs_Construction (Etype (Component))
- then
- Set_Needs_Construction (T);
- end if;
-
if Ekind (Component) /= E_Component then
null;