]> 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)
committerEric Botcazou <ebotcazou@adacore.com>
Tue, 12 Nov 2024 17:50:19 +0000 (18:50 +0100)
commit4d1e1f947d5dade8474cb39516b60422bcc3c245
tree5b3ffcdc2923536d1c4be7199129568f83c122e2
parent89f21c18af96a3b994595081939e19d8b042c963
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:

PR ada/117328
* 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