]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix expanding container aggregates with Iterator specification
authorViljar Indus <indus@adacore.com>
Wed, 5 Jul 2023 09:28:56 +0000 (12:28 +0300)
committerMarc Poulhiès <poulhies@adacore.com>
Tue, 18 Jul 2023 13:11:47 +0000 (15:11 +0200)
commita6ca70c6744ed6019b1ddbc41c8a09a45331e5bb
tree6df74df6e5c847a0af8372a11fc374b4122c4ad6
parent086a2c9d042f14397dcde345c5011e20cc6016f4
ada: Fix expanding container aggregates with Iterator specification

The compiler should use unnamed addition methods such as Append
when expanding a container aggregate with Iterator Specification.

gcc/ada/

* exp_aggr.adb (Expand_Container_Aggregate): Use the positional
addition method only when dealing with a container aggregate
without an Iterator Specification e.g. with a loop parameter
specification
gcc/ada/exp_aggr.adb