https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121354
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Gaius Mulley <ga...@gcc.gnu.org>: https://gcc.gnu.org/g:08196f044015737b81a454864684e57fbfc5b1a9 commit r16-2712-g08196f044015737b81a454864684e57fbfc5b1a9 Author: Gaius Mulley <gaiusm...@gmail.com> Date: Fri Aug 1 15:16:37 2025 +0100 PR modula2/121354: ICE when attempting to fold HIGH from an unbounded array in a nested procedure The bug fix re-implements gcc/m2/gm2-compiler/M2GenGCC.mod:FoldHigh to ignore any attempt to constant fold HIGH if it has an unbounded array operand. gcc/m2/ChangeLog: PR modula2/121354 * gm2-compiler/M2GenGCC.mod (FoldHigh): Rewrite. (IsUnboundedArray): New procedure function. Signed-off-by: Gaius Mulley <gaiusm...@gmail.com>