https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121289
Bug ID: 121289 Summary: Poor warning location when using -Wstyle 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 badvarname.mod MODULE badvarname ; PROCEDURE Foo ; VAR end: CARDINAL ; BEGIN end := 1 END Foo ; BEGIN Foo END badvarname. $ gm2 -Wstyle badvarname.mod badvarname.mod:6:18: note: In procedure ‘Foo’: either the identifier has the same name as a keyword or alternatively a keyword has the wrong case (‘END’ and ‘end’) 6 | end: CARDINAL ; | ^ badvarname.mod:6:18: note: the symbol name ‘end’ is legal as an identifier, however as such it might cause confusion and is considered bad programming practice