https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121354
--- Comment #3 from Gaius Mulley <gaius at gcc dot gnu.org> --- The problem is that it is attempting to fold HIGH for an unbounded array. FoldHigh needs to ignore such cases.
gaius at gcc dot gnu.org via Gcc-bugs Fri, 01 Aug 2025 06:34:23 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121354
--- Comment #3 from Gaius Mulley <gaius at gcc dot gnu.org> --- The problem is that it is attempting to fold HIGH for an unbounded array. FoldHigh needs to ignore such cases.