From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DB8343858034; Fri, 17 Dec 2021 17:30:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB8343858034 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/103758] New: bogus warning: misspelled term 'decl' in format; use 'declaration' instead [-Wformat-diag] Date: Fri, 17 Dec 2021 17:30:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Dec 2021 17:30:55 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103758 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 =E2=80=98void cp_parser_decl_specifier_seq(cp_= parser*, cp_parser_flags, cp_decl_specifier_seq*, int*)=E2=80=99: /home/mpolacek/src/gcc/gcc/cp/parser.c:15923:55: warning: misspelled term =E2=80=98decl=E2=80=99 in format; use =E2=80=98declaration=E2=80=99 instead= [-Wformat-diag] 15923 | "standard attributes in middle of decl-specifiers"); | ^~~~ /home/mpolacek/src/gcc/gcc/cp/parser.c:15925:57: warning: misspelled term =E2=80=98decl=E2=80=99 in format; use =E2=80=98declaration=E2=80=99 instead= [-Wformat-diag] 15925 | "standard attributes must precede the decl-specif= iers 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*".=