]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Fix spurious error on iterated component association with large index type
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 30 Oct 2024 10:22:12 +0000 (11:22 +0100)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Tue, 12 Nov 2024 13:05:47 +0000 (14:05 +0100)
commitd34069c3ffaac95ba880ba12de26972bc3fb91b8
treefcea1f7626540dd59dae7182be834f051a7ee1a2
parenta1dfd384a961043c9b8930d14abb761451298620
ada: Fix spurious error on iterated component association with large index type

This is only for the Ada 2022 form of the iterated component association.

gcc/ada/ChangeLog:

* exp_aggr.adb (Two_Pass_Aggregate_Expansion): Use a type sized
from the index type to compute the length.  Simplify and remove
useless calls to New_Copy_Tree for this computation.
gcc/ada/exp_aggr.adb