public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103758] New: bogus warning: misspelled term 'decl' in format; use 'declaration' instead [-Wformat-diag]
@ 2021-12-17 17:30 mpolacek at gcc dot gnu.org
  2021-12-17 17:31 ` [Bug c++/103758] " jason at gcc dot gnu.org
                   ` (17 more replies)
  0 siblings, 18 replies; 19+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-12-17 17:30 UTC (permalink / raw)
  To: gcc-bugs

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*".

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2022-01-17 21:27 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-17 17:30 [Bug c++/103758] New: bogus warning: misspelled term 'decl' in format; use 'declaration' instead [-Wformat-diag] mpolacek at gcc dot gnu.org
2021-12-17 17:31 ` [Bug c++/103758] " jason at gcc dot gnu.org
2021-12-17 17:31 ` mpolacek at gcc dot gnu.org
2021-12-17 19:27 ` mpolacek at gcc dot gnu.org
2022-01-03 21:27 ` cvs-commit at gcc dot gnu.org
2022-01-03 21:28 ` mpolacek at gcc dot gnu.org
2022-01-05  8:48 ` marxin at gcc dot gnu.org
2022-01-05 15:14 ` mpolacek at gcc dot gnu.org
2022-01-05 15:32 ` jakub at gcc dot gnu.org
2022-01-05 15:33 ` jakub at gcc dot gnu.org
2022-01-05 15:38 ` mpolacek at gcc dot gnu.org
2022-01-05 15:49 ` msebor at gcc dot gnu.org
2022-01-06  0:43 ` cvs-commit at gcc dot gnu.org
2022-01-17 18:33 ` cvs-commit at gcc dot gnu.org
2022-01-17 18:33 ` mpolacek at gcc dot gnu.org
2022-01-17 18:39 ` mpolacek at gcc dot gnu.org
2022-01-17 18:45 ` jakub at gcc dot gnu.org
2022-01-17 18:47 ` mpolacek at gcc dot gnu.org
2022-01-17 21:27 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).