https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117328
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Eric Botcazou <ebotca...@gcc.gnu.org>: https://gcc.gnu.org/g:d6214b83e10d26bf116d4fca9de07a14cf4358cd commit r13-9180-gd6214b83e10d26bf116d4fca9de07a14cf4358cd Author: Eric Botcazou <ebotca...@adacore.com> Date: Wed Oct 30 11:22:12 2024 +0100 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.