-
Notifications
You must be signed in to change notification settings - Fork 13.5k
ICE on code with constevals #53244
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
Comments
@llvm/issue-subscribers-clang-frontend |
@llvm/issue-subscribers-bug |
Proposed fix at https://reviews.llvm.org/D119095 |
@llvm/issue-subscribers-c-20 |
Fixed on trunk. |
If one removes
then Clang trunk still shows an error:
Online demo: https://gcc.godbolt.org/z/eYTKz6zKh |
There's no definition of the copy constructor, so the diagnostic makes sense in that regard. However, it looks like Clang is missing a copy elision during constant evaluation: https://gcc.godbolt.org/z/Yj4bvon3f (note how the non- |
Uh oh!
There was an error while loading. Please reload this page.
This program compilation results in ICE:
Demo: https://gcc.godbolt.org/z/rx7js6WrK
Edit: Reduce: https://godbolt.org/z/7rv8b8YxG
The text was updated successfully, but these errors were encountered: