https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119504
Gaius Mulley <gaius at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 Last reconfirmed| |2025-03-28 --- Comment #1 from Gaius Mulley <gaius at gcc dot gnu.org> --- Confirmed. Modula-2 does not allow these kind of constant string to be accessed as arrays. However it obviously shouldn't ICE under any circumstances. <aside> For completeness ISO Modula-2 does allow constant strings to be accessed, but they must be constructed using an array type. For example: CONST HexDigits = "0123456789ABCDEF" ; TYPE ArrayType = ARRAY [0..HIGH (HexDigits)] OF CHAR ; CONST HexArray = ArrayType { HexDigits } ; VAR ch: CHAR ; BEGIN ch := HexArray[4] END </aside>