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

            Bug ID: 103758
           Summary: bogus warning: misspelled term 'decl' in format; use
                    'declaration' instead [-Wformat-diag]
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
                CC: jason at gcc dot gnu.org
  Target Milestone: ---

Every time I compile GCC I see:

gcc/cp/parser.c: In function ‘void cp_parser_decl_specifier_seq(cp_parser*,
cp_parser_flags, cp_decl_specifier_seq*, int*)’:
/home/mpolacek/src/gcc/gcc/cp/parser.c:15923:55: warning: misspelled term
‘decl’ in format; use ‘declaration’ instead [-Wformat-diag]
15923 |                     "standard attributes in middle of
decl-specifiers");
      |                                                       ^~~~
/home/mpolacek/src/gcc/gcc/cp/parser.c:15925:57: warning: misspelled term
‘decl’ in format; use ‘declaration’ instead [-Wformat-diag]
15925 |                   "standard attributes must precede the decl-specifiers
to "
      |                                                         ^~~~

but I don't want to, "decl-specifiers" is a grammar production.  It is not
code, so should not be wrapped inside of %< %>.

I'd like my compilation to be free of warnings, otherwise I'm going to miss
some important ones.

The warning should not warn on "decl-specifier*".

Reply via email to