diff options
author | Marc Poulhiès <poulhies@adacore.com> | 2022-02-18 16:35:06 +0100 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-13 08:04:42 +0000 |
commit | e3584606f5cb9bfc717a19e96731bc35ea11a40e (patch) | |
tree | 3084c5cada38a85596080780ac2683c9f2ce7b3e /gcc/ada/gcc-interface | |
parent | 4c9a8183b3469f50c9418a2309e56b37cbac9f9f (diff) | |
download | gcc-e3584606f5cb9bfc717a19e96731bc35ea11a40e.zip gcc-e3584606f5cb9bfc717a19e96731bc35ea11a40e.tar.gz gcc-e3584606f5cb9bfc717a19e96731bc35ea11a40e.tar.bz2 |
[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.
Diffstat (limited to 'gcc/ada/gcc-interface')
0 files changed, 0 insertions, 0 deletions