llvm-project
llvm-project copied to clipboard
Decl.cpp:2332: bool clang::VarDecl::checkInitIsICE() const: Assertion `!Init->isValueDependent()' failed
| Bugzilla Link | 38820 |
| Version | trunk |
| OS | Linux |
| Attachments | Reduced testcase file to reproduce the issue, Console output for assertion error |
| CC | @JVApen |
Extended Description
Faced the below assertion failure:
/home/amd/JENKINS/workspace/Staging_Build_Tracker/llvm/tools/clang/lib/AST/Decl.cpp:2332: bool clang::VarDecl::checkInitIsICE() const: Assertion `!Init->isValueDependent()' failed.
Steps to reproduce the issue with the reduced testcase:
- Download the attached file
- Compile the cpp file using the below command clang++ CE_assertion_err.cpp
I can not get this to reproduce anymore: https://godbolt.org/z/zojea635b
Please reopen if you can get this to reproduce on clang trunk.