[Ada] Multidimensional arrays with Iterated_Component_Associations
authorEd Schonberg <schonberg@adacore.com>
Mon, 21 Sep 2020 13:37:46 +0000 (15:37 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Tue, 27 Oct 2020 09:19:32 +0000 (05:19 -0400)
commitfb00cc7032bf1129373edd2bd99cf02fe03fd1d8
treeb14744056790d078177ea830adcac62596d1b206
parentb3ad829bd17861251de97b58bb487978b14a0652
[Ada] Multidimensional arrays with Iterated_Component_Associations

gcc/ada/

* sem_aggr.adb (Resolve_Iterated_Component_Association): new
internal subprogram Remove_References, to reset semantic
information on each reference to the index variable of the
association, so that Collect_Aggregate_Bounds can work properly
on multidimensional arrays with nested associations, and
subsequent expansion into loops can verify that dimensions of
each subaggregate are compatible.
gcc/ada/sem_aggr.adb