[Ada] Ongoing work for AI12-0212 : container aggregates
authorEd Schonberg <schonberg@adacore.com>
Fri, 12 Jun 2020 18:57:02 +0000 (14:57 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 16 Jul 2020 09:18:18 +0000 (05:18 -0400)
commit7a21651f336cfc5475e1373b3fae6b792e45fc16
tree27ef3e9c53ab81c3002ae543c99c4d161bd95e80
parent81fcf43389ea53b223e1c16d60b6d8e735e0a4e4
[Ada] Ongoing work for AI12-0212 : container aggregates

gcc/ada/

* sem_aggr.adb (Resolve_Container_Aggregate): Add semantic
checks for indexed aggregates, including component associations
and iterated component associations.
* exp_aggr.adb (Expand_Iterated_Component): New subprogram,
subsidiary of Expand_Container_Aggreggate, used for positional,
named, and indexed aggregates.
(Aggregate_Size): New subprogram to precompute the size of an
indexed aggregate prior to call to allocate it.
(Expand_Range_Component): New subprogram so generate loop for a
component association given by a range or a subtype name in an
indexed aggregate.
gcc/ada/exp_aggr.adb
gcc/ada/sem_aggr.adb