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

--- Comment #3 from Gaius Mulley <gaius at gcc dot gnu.org> ---
After the patch has been applied the warning location is correct:

$ gm2 -Wstyle badvarname.mod
badvarname.mod:6:4: 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:4: note: the symbol name ‘end’ is legal as an identifier,
however as such it might cause confusion and is considered bad programming
practice

Reply via email to