sem_ch3.adb (Analyze_Object_Declaration): New function Has_Delayed_Aspect...
authorEd Schonberg <schonberg@adacore.com>
Tue, 12 May 2015 08:25:39 +0000 (08:25 +0000)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 12 May 2015 08:25:39 +0000 (10:25 +0200)
commitb741083a31b79945bb754418ed14883a1c7b50d2
treeb4a00b7468712c6c20a4b9f7496dc7834cd0bf63
parenta0a10853345a395b64e44df41dbb743661301ef0
sem_ch3.adb (Analyze_Object_Declaration): New function Has_Delayed_Aspect...

2015-05-12  Ed Schonberg  <schonberg@adacore.com>

* sem_ch3.adb (Analyze_Object_Declaration): New function
Has_Delayed_Aspect, used to defer resolution of an aggregate
expression when the object declaration carries aspects Address
and/or Alignment.
* freeze.adb (Freeze_Object_Declaration): New subsidiary procedure
to Freeze_Entity.  In addition to the previous processing steps
at the freeze point of an object, this procedure also handles
aggregates in object declarations, when the declaration carries
delayed aspects that require that the initialization of the
object be attached to its freeze actions.

2015-05-12  Ed Schonberg  <schonberg@adacore.com>

* sem_ch6.adb (Analyze_Subprogram_Declaration): Following
AI12-0147, null procedures and expression functions are allowed
in protected bodies.

From-SVN: r223041
gcc/ada/ChangeLog
gcc/ada/freeze.adb
gcc/ada/sem_ch3.adb
gcc/ada/sem_ch6.adb