]> gcc.gnu.org Git - gcc.git/commit
c++: Don't quote nothrow in diagnostic
authorMarek Polacek <polacek@redhat.com>
Fri, 23 Sep 2022 16:32:38 +0000 (12:32 -0400)
committerMarek Polacek <polacek@redhat.com>
Tue, 27 Sep 2022 13:23:43 +0000 (09:23 -0400)
commit971bc0aae9cf52abe9a6fcab3b7c25d1fa94ad1e
tree2ab05b1ecf8961cfa1ef1fd40b464537043ed2e9
parent3f7eea4411e4b2d8a500d9272b2ed72f73bdd008
c++: Don't quote nothrow in diagnostic

In <https://gcc.gnu.org/pipermail/gcc-patches/2022-September/602057.html>
Jason noticed that we quote "nothrow" in diagnostics even though it's
not a keyword in C++.  This patch removes the quotes and also drops
"nothrow" from c_keywords.

gcc/c-family/ChangeLog:

* c-format.cc (c_keywords): Drop nothrow.

gcc/cp/ChangeLog:

* constraint.cc (diagnose_trait_expr): Say "nothrow" without quotes
rather than in quotes.

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/concepts-traits3.C: Adjust expected diagnostics.
gcc/c-family/c-format.cc
gcc/cp/constraint.cc
gcc/testsuite/g++.dg/cpp2a/concepts-traits3.C
This page took 0.062427 seconds and 5 git commands to generate.