https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117328
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Eric Botcazou <ebotca...@gcc.gnu.org>: https://gcc.gnu.org/g:4d1e1f947d5dade8474cb39516b60422bcc3c245 commit r14-10923-g4d1e1f947d5dade8474cb39516b60422bcc3c245 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.