https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106111
Andrew Pinski changed:
What|Removed |Added
Target Milestone|--- |13.0
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106111
Marek Polacek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106111
--- Comment #5 from CVS Commits ---
The trunk branch has been updated by Marek Polacek :
https://gcc.gnu.org/g:2ea6c59349793761b9c00f75ef281ac413566b2f
commit r13-1394-g2ea6c59349793761b9c00f75ef281ac413566b2f
Author: Marek Polacek
Date:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106111
Marek Polacek changed:
What|Removed |Added
Assignee|unassigned at gcc dot gnu.org |mpolacek at gcc dot
gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106111
--- Comment #4 from Marek Polacek ---
And for consteval the problem is likely that enum rid has:
273 RID_FIRST_CXX20 = RID_CONSTINIT,
274 RID_LAST_CXX20 = RID_CONSTINIT,
Oops.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106111
Marek Polacek changed:
What|Removed |Added
CC||mpolacek at gcc dot gnu.org
Last
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106111
--- Comment #2 from Jonathan Wakely ---
Oh, that's because -Wc++20-compat doesn't include -Wc++17-compat etc.
With the right options GCC warns about three:
$ g++ -std=c++03 r.C -c -Wc++20-compat -Wc++11-compat -Wc++14-compat
-Wc++17-compat
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106111
--- Comment #1 from Jonathan Wakely ---
Looks like we don't warn about any keywords with any -Wc++NN-compat options:
int decltype, constexpr, consteval, requires, noexcept, alignof, alignas;
GCC doesn't warn about any of these, Clang only