https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123371
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Eric Botcazou <[email protected]>: https://gcc.gnu.org/g:dd84048bbe5377cf698407b11e9202c7f14fbe9e commit r16-6474-gdd84048bbe5377cf698407b11e9202c7f14fbe9e Author: Eric Botcazou <[email protected]> Date: Sat Jan 3 11:47:35 2026 +0100 Ada: Fix infinite loop on iterated element association with iterator and key Unlike when the key expression is not present, Resolve_Iterated_Association analyzes instead of preanalyzes the iterator specification, which causes the expander to be invoked on an orphaned copy of the iterator expression. gcc/ada/ PR ada/123371 * sem_aggr.adb (Resolve_Iterated_Association): Call Preanalyze instead of Analyze consistently, as well as Copy_Separate_Tree instead of New_Copy_Tree. gcc/testsuite/ * gnat.dg/specs/aggr10.ads: New test.
