diff options
author | Piotr Trojanek <trojanek@adacore.com> | 2022-07-21 21:42:17 +0200 |
---|---|---|
committer | Marc Poulhiès <poulhies@adacore.com> | 2022-09-05 09:21:04 +0200 |
commit | f3561c06465c9f4110bd483f35b97201825eec44 (patch) | |
tree | da7aa5881bc5d058650c1c03b6fbb054fd61f93b /libcpp | |
parent | d983abebfffbfe03de74fb127de290179b715af4 (diff) | |
download | gcc-f3561c06465c9f4110bd483f35b97201825eec44.zip gcc-f3561c06465c9f4110bd483f35b97201825eec44.tar.gz gcc-f3561c06465c9f4110bd483f35b97201825eec44.tar.bz2 |
[Ada] Detect expansion of iterated component associations into loops
Iterated component associations are expanded into loops, which GNAT
should detect as violating restriction No_Implicit_Loops; same for
iterated element associations and delta array aggregates.
Part of cleanups for correct handling of iterated component associations
in SPARK.
gcc/ada/
* exp_aggr.adb
(Two_Pass_Aggregate_Expansion): Expand into implicit rather than
ordinary loops, to detect violations of restriction
No_Implicit_Loops.
(Generate_Loop): Likewise for delta array aggregates.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions