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

            Bug ID: 121314
           Summary: quotes appearing in concatenated error strings
           Product: gcc
           Version: 16.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: ---

Consider the following program:

$ cat badindrtype2.mod 
MODULE badindrtype2 ;


PROCEDURE init (VAR ch: CHAR) ;
VAR
   c: CARDINAL ;
BEGIN
   c := ch
END init ;


VAR
   ch: CHAR ;
BEGIN
   init (ch)
END badindrtype2.

When compiled:

$ gm2 badindrtype2.mod
badindrtype2.mod:8:6: error: In procedure ‘init’: assignment designator ‘c’ of
type ‘CARDINAL’ is a variable and expression ‘ch’ of type ‘CHAR’ are
incompatible
    8 |    c := ch
      |    ~~^~~~~
badindrtype2.mod:8:6: error: assignment designator ‘c’ of type ‘CARDINAL’'' is
a variable and expression ‘ch’'' of type ‘CHAR’ are incompatible

The message contains too many single quotes.

Reply via email to