https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117328
--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- https://gcc.gnu.org/g:d34069c3ffaac95ba880ba12de26972bc3fb91b8 commit r15-5160-gd34069c3ffaac95ba880ba12de26972bc3fb91b8 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: * 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.