https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121354
--- Comment #4 from Gaius Mulley <gaius at gcc dot gnu.org> --- Created attachment 62029 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62029&action=edit Proposed fix which ignores attempts at folding HIGH for unbounded arrays 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 operands.