-
Notifications
You must be signed in to change notification settings - Fork 11.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] Clang erroneously allows if constexpr
in C23 mode
#112587
Labels
accepts-invalid
c23
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
regression:19
Regression in 19 release
Comments
Sirraide
added
c23
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
accepts-invalid
labels
Oct 16, 2024
@llvm/issue-subscribers-clang-frontend Author: None (Sirraide)
See https://godbolt.org/z/E8PEzzfP3. According to @AaronBallman, this isn’t intentional, so we should probably disallow this.
|
It would be really nice if we could get a fix for this in to Clang 19.x |
I don't think this is a regression since clang 18 doesn't support c23 constexpr. |
I guess I look at it as |
Fznamznon
added a commit
to Fznamznon/llvm-project
that referenced
this issue
Oct 17, 2024
Fznamznon
added a commit
that referenced
this issue
Oct 17, 2024
Fznamznon
added a commit
to Fznamznon/llvm-project
that referenced
this issue
Oct 17, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
accepts-invalid
c23
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
confirmed
Verified by a second party
regression:19
Regression in 19 release
See https://godbolt.org/z/E8PEzzfP3. According to @AaronBallman, this isn’t intentional, so we should probably disallow this.
The text was updated successfully, but these errors were encountered: