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

            Bug ID: 109467
           Summary: inconsistent formatting/case of keywords in error
                    messages in Fortran front end
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sandra at gcc dot gnu.org
  Target Milestone: ---

I've noted that calls to gfc_error in the Fortran front end use a mix of
conventions for language keywords.  Some messages use "%<keyword%>", others
"KEYWORD", and then there are things like "%<inscan%> REDUCTION clause" in the
same message.  :-(

The GCC internals manual is clear that %< markup should be used on all
keywords, but is upper or lower case preferred?  Almost all places that
currently use %< markup use lower case.  The Fortran standard uses upper case
for keywords and intrinsics, as does the GNU Fortran manual, while the OpenMP
spec seems to use lower case for its own keywords and upper case for regular
Fortran keywords.

There are also a couple messages in trans-openmp.cc that use literal quotes
around lower-case keywords.

Anyway, rather than trying to patch these things piecemeal, it's probably best
just to make a pass through the sources to implement whatever convention we
decide on, and similarly patch up all testcases that scan for these error
messages.

Reply via email to