https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123178
Bug ID: 123178
Summary: Error message clutter when reporting about a non
procedure
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 code:
$ cat badprocedure.mod
MODULE badprocedure ;
IMPORT FIO ;
BEGIN
FIO.WriteLn (FIO.StdOut)
END badprocedure.
$ gm2 badprocedure.mod
badprocedure.mod:6:8: error: In program module ‘badprocedure’: ‘WriteLn’ is not
recognised as a procedure
6 | FIO.WriteLn (FIO.StdOut)
| ^~~~~~~
badprocedure.mod:6:16: error: symbol WriteLn is not exported from definition
module FIO
6 | FIO.WriteLn (FIO.StdOut)
| ^
the 2nd error message points to the wrong token and we end up with clutter.