https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93821
Bug ID: 93821 Summary: Define __cplusplus to 202002L in C++20 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Hi, A few hours ago the clang folks did add explicit support for the flag -std=c++20, and not only did they change that, they also changed the value of __cplusplus to 202002L. I think in gcc this __cplusplus value shall be updated too. Right now on Compiler Explorer you need to use this assertions so that there is no error on clang/gcc trunk: #ifndef __clang__ static_assert(__cplusplus == 201709L); #else static_assert(__cplusplus == 202002L); #endif https://godbolt.org/z/kh2sxc Cheers, Romain