aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/decl.cc
diff options
context:
space:
mode:
authorViljar Indus <indus@adacore.com>2023-07-06 16:02:19 +0300
committerMarc Poulhiès <poulhies@adacore.com>2023-07-18 15:11:47 +0200
commitc57fbb120dabb4fee85cc12ae99abe5060213d93 (patch)
treee113c92756d5d64075fd3fc9c9e8232f99dfe379 /gcc/ada/gcc-interface/decl.cc
parent99c419b2a8ce033e8be08f656edd350d97f72125 (diff)
downloadgcc-c57fbb120dabb4fee85cc12ae99abe5060213d93.zip
gcc-c57fbb120dabb4fee85cc12ae99abe5060213d93.tar.gz
gcc-c57fbb120dabb4fee85cc12ae99abe5060213d93.tar.bz2
ada: Avoid iterator conflicts in container aggregates
Create temporary scope for the iterators defined in a container aggregate so that it would not be put to the same scope where the expression was used. This would otherwise lead to multiple aggregates with iterators that have the same name leading to a name conflict. gcc/ada/ * sem_aggr.adb (Resolve_Iterated_Association): Add temporary scope when analyzing the Iterator Specification. Use preanalysis instead of Analysis to avoid polluting the tree.
Diffstat (limited to 'gcc/ada/gcc-interface/decl.cc')
0 files changed, 0 insertions, 0 deletions