diff options
author | Marc Poulhiès <poulhies@adacore.com> | 2022-03-07 14:02:13 +0100 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2022-05-16 08:42:04 +0000 |
commit | aacbf3761cdd1048d22dc392216a36599da697e6 (patch) | |
tree | d155133e7935b1637b864ff773b131d93cfa9e35 /gcc/ada/init.c | |
parent | e4acb82e97f8043dcd5e6b91b7d3c05d7b478b45 (diff) | |
download | gcc-aacbf3761cdd1048d22dc392216a36599da697e6.zip gcc-aacbf3761cdd1048d22dc392216a36599da697e6.tar.gz gcc-aacbf3761cdd1048d22dc392216a36599da697e6.tar.bz2 |
[Ada] Fix iterated element association loop var escaping loop scope
Fix the escaping of the loop variable from the loop scope in both forms
of iterated element associations (i.e. "for J in ..." and "for J of
..."). Create a dedicated scope around the analyses of both loops. Also
create a copy of the Loop_Parameter_Specification instead of analyzing
(and modifying) the original Tree as it will be reanalyzed later.
gcc/ada/
* sem_aggr.adb (Resolve_Iterated_Association): Create scope
around N_Iterated_Element_Association handling. Analyze a copy
of the Loop_Parameter_Specification. Call Analyze instead
Analyze_* to be more homogeneous.
(Sem_Ch5): Remove now unused package.
Diffstat (limited to 'gcc/ada/init.c')
0 files changed, 0 insertions, 0 deletions