exp_aggr.adb
225 KB
-
exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a limited ancestor part... · 3b9fa2df
2007-12-06 Ed Schonberg <schonberg@adacore.com> * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a limited ancestor part, initialize controllers of enclosing record before expanding ancestor aggregate. (Gen_Assign): If a component of the aggregate is box-initialized, add code to call Initialize if the component is controlled, and explicit assignment of null if the component is an access type. Handle properly aggregates for limited types that appear in object declarations when the aggregate contains controlled values such as protected types. When expanding limited aggregates into individual components, do not call Adjust on controlled components that are limited. From-SVN: r130828
Ed Schonberg committed