https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106111
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
Last reconfirmed| |2022-06-28
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed, same problem with e.g.
int concept;
The problem is that cp_lexer_get_preprocessor_token has
906 if (warn_cxx20_compat
907 && C_RID_CODE (token->u.value) >= RID_FIRST_CXX20
908 && C_RID_CODE (token->u.value) <= RID_LAST_CXX20)
but requires/concept aren't in the C++20 keywords, they are marked as
D_CXX_CONCEPTS_FLAGS instead.