]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR modula2/121354: ICE when attempting to fold HIGH from an unbounded array in a...
authorGaius Mulley <gaiusmod2@gmail.com>
Fri, 1 Aug 2025 14:16:37 +0000 (15:16 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Fri, 1 Aug 2025 14:16:37 +0000 (15:16 +0100)
commit08196f044015737b81a454864684e57fbfc5b1a9
tree7100155716cfdffed7f7112256e7d5a97d8e34b3
parentdb39ace3c1c6b7c222a46e4e5a20900262d1971d
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 <gaiusmod2@gmail.com>
gcc/m2/gm2-compiler/M2GenGCC.mod