-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Clang crashes with ICE when concept constraint uses incomplete requires block with ellipsis since version 20 with -std=c++20 #138820
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
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
concepts
C++20 concepts
confirmed
Verified by a second party
crash-on-invalid
regression:20
Regression in 20 release
Comments
@llvm/issue-subscribers-clang-frontend Author: None (mariete1223)
Using a concept with a requires clause that includes an incomplete expression using ellipsis (...) results in an internal compiler error (ICE)
AssertionNo assertion arises Program
Stack dump
To quickly reproduceIt only happens in version 20 and current with -std=c++20 flag https://gcc.godbolt.org/z/x47naqv91 |
AaronBallman
added a commit
to AaronBallman/llvm-project
that referenced
this issue
May 7, 2025
We were previously recovering a bit too hard; consumeClose() would skip to a recovery point, then we would call skipToEnd() to skip to another recovery point. Needless to say, the follow-on diagnostics were not great. But also, follow-on diagnostics were crashing due to unexpected null constraint expressions. Now we only recover once. Fixes llvm#138820
AaronBallman
added a commit
that referenced
this issue
May 7, 2025
We were previously recovering a bit too hard; consumeClose() would skip to a recovery point, then we would call skipToEnd() to skip to another recovery point. Needless to say, the follow-on diagnostics were not great. But also, follow-on diagnostics were crashing due to unexpected null constraint expressions. Now we only recover once. Fixes #138820
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
concepts
C++20 concepts
confirmed
Verified by a second party
crash-on-invalid
regression:20
Regression in 20 release
Using a concept with a requires clause that includes an incomplete expression using ellipsis (...) results in an internal compiler error (ICE)
Assertion
No assertion arises
Program
Stack dump
To quickly reproduce
It only happens in version 20 and current with -std=c++20 flag
https://gcc.godbolt.org/z/x47naqv91
The text was updated successfully, but these errors were encountered: