https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112524
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Marc Poulhi?s <d...@gcc.gnu.org>: https://gcc.gnu.org/g:53133d07901afa45bd1cb3cdcf7f5d4ed2418dd7 commit r15-5241-g53133d07901afa45bd1cb3cdcf7f5d4ed2418dd7 Author: Eric Botcazou <ebotca...@adacore.com> Date: Mon Oct 28 11:19:10 2024 +0100 ada: Fix internal error on misplaced iterated component association This happens for example in the others choice of a 1-dimensional array: A : array (1 .. Length) of Integer := (others => for Each in 1 .. Length => Each); or when it is used without parentheses for the array component of a record. gcc/ada/ChangeLog: PR ada/112524 PR ada/113781 * par-ch4.adb (P_Primary) <Tok_For>: Give an error about missing parentheses in the (purported) iterated component case too. (P_Unparen_Cond_Expr_Etc): Likewise. * sem.adb (Analyze): Raise PE on N_Iterated_Component_Association. * sem_util.ads (Diagnose_Iterated_Component_Association): Delete. * sem_util.adb (Diagnose_Iterated_Component_Association): Likewise.