[Ada] Ada_2020: ongoing work for aggregates for bounded containers
authorEd Schonberg <schonberg@adacore.com>
Thu, 13 Aug 2020 14:38:26 +0000 (10:38 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 22 Oct 2020 12:11:20 +0000 (08:11 -0400)
commit08c8883f44b80fd9802d90277db2a0a54975810c
tree9910b9e7d7c429448a7f90f9d818df53c57507da
parent4a11d43f15368d59dcbe424b047dc8029e4e98c5
[Ada] Ada_2020: ongoing work for aggregates for bounded containers

gcc/ada/

* sem_aggr.adb: (Resolve_Container_Aggregate): For an indexed
container, verify that expressions and component associations
are not both present.
* exp_aggr.adb: Code reorganization, additional comments.
(Expand_Container_Aggregate): Use Aggregate_Size for Iterated_
Component_Associations for indexed aggregates. If present, the
default value of the formal in the constructor function is used
when the size of the aggregate cannot be determined statically.
gcc/ada/exp_aggr.adb
gcc/ada/sem_aggr.adb