]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Fix iterated component association for array aggregate
authorMarc Poulhiès <poulhies@adacore.com>
Fri, 18 Feb 2022 15:35:06 +0000 (16:35 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 13 May 2022 08:04:42 +0000 (08:04 +0000)
commite3584606f5cb9bfc717a19e96731bc35ea11a40e
tree3084c5cada38a85596080780ac2683c9f2ce7b3e
parent4c9a8183b3469f50c9418a2309e56b37cbac9f9f
[Ada] Fix iterated component association for array aggregate

Create a scope for the Ada 2022 iterated component association loops. In
the case of elements needing finalization, the late expansion would
crash on references to the loop variable within the loop body.

gcc/ada/

* exp_aggr.adb (Gen_Loop): Create scope for loop variable of
iterated components.
gcc/ada/exp_aggr.adb