-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[clang] Accept -std=c++23/gnu++23 rather than c++2b, like gcc does #59300
Comments
@llvm/issue-subscribers-clang-frontend |
@llvm/issue-subscribers-clang-driver |
We typically wait for the standard to be ratified before doing that, but at the end of the day, if the standard is ratified in 2024, we'd just accept c++23 as an alias for c++24 same as we do with c90/c89. Interestingly, GCC does not accept |
@llvm/issue-subscribers-c-2b |
Hi, I am not sure this if this is ok to implement this now. Last time for C++20 it seems it was done in February 2020: 24ad121 |
I think we're good to go for renaming C++2b to C++23 now (any ballot comments received by WG21 at this stage will be handled as issues against C++2c instead). CC @hubert-reinterpretcast as C++ conformance code owner |
This is implemented on the main branch now, so closing this. |
Hi,
gcc already accepts the C++ dialects
c++23
/gnu++23
, and checking right now on Compiler Explorer it seems clang does not. C++23 isn't finalized yet, however it is shaping up and has already reached the feature freeze phase. Most likely it will be officially formalized in 2023. Is it time to start accepting-std=c++23
/-std=gnu++23
in clang ?Cheers,
Romain
The text was updated successfully, but these errors were encountered: