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

            Bug ID: 117660
           Summary: Errors referring to variables of type array could
                    display full declaration
           Product: gcc
           Version: 15.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: ---

The full declaration for variables of an ARRAY type should be displayed rather
than stop on the word "ARRAY".  For example on the gcc-15.0 branch:

$ gm2 arraymismatch.mod
arraymismatch.mod:7:6: error: assignment check caught mismatch between ‘a’ and
‘b’
    7 |    a := b
      |    ~~^~~~
arraymismatch.mod:7:6: error: not allowed to assign array ‘b’ to ‘a’ as they
have a different number of elements
arraymismatch.mod:4:4: error: variable declaration for ‘a’
    4 |    a: ARRAY [0..3] OF REAL ;
      |    ^~~~~~~~
arraymismatch.mod:5:4: error: variable declaration for ‘b’
    5 |    b: ARRAY [0..4] OF REAL ;
      |    ^~~~~~~~

Reply via email to