-
Notifications
You must be signed in to change notification settings - Fork 13.3k
ICE in llvm::Type::isIntegerTy(unsigned int) const #60432
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
c++20
clang:codegen
IR generation bugs: mangling, exceptions, etc.
confirmed
Verified by a second party
crash
Prefer [crash-on-valid] or [crash-on-invalid]
Comments
Confirmed, godbolt: https://godbolt.org/z/x5Y8cGPPG Assertion: clang++: /root/llvm-project/clang/lib/AST/Decl.cpp:2493:
clang::APValue* clang::VarDecl::evaluateValueImpl(llvm::SmallVectorImpl<std::pair<clang::SourceLocation, clang::PartialDiagnostic> >&, bool) const:
Assertion `!Init->isValueDependent()' failed. |
@llvm/issue-subscribers-c-20 |
@llvm/issue-subscribers-clang-codegen |
The expression that can't be evaluated is:
Should we even be trying to emit code for this? |
I've faced this issue while running the following IR with
This IR can be compiled to executable by clang 17.0 and it runs without errors |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
c++20
clang:codegen
IR generation bugs: mangling, exceptions, etc.
confirmed
Verified by a second party
crash
Prefer [crash-on-valid] or [crash-on-invalid]
Split from #60431
The following program ICEs in Clang 16.0.0rc1:
The text was updated successfully, but these errors were encountered: