https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109810

            Bug ID: 109810
           Summary: String literal exceeding array causes ICE
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: modula2
          Assignee: gaius at gcc dot gnu.org
          Reporter: gaius at gcc dot gnu.org
  Target Milestone: ---

As reported on the gm2 mailing list.  If a string literal exceeding the array
size is assigned then an ICE occurs.  For example:

MODULE highice ;

VAR
   a: ARRAY [0..0] OF CHAR ;
BEGIN
   a := '12'
END highice.

Reply via email to