llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Decl.cpp:2332: bool clang::VarDecl::checkInitIsICE() const: Assertion `!Init->isValueDependent()' failed

Open BalaRishi-AMD opened this issue 8 years ago • 1 comments

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

BalaRishi-AMD avatar Sep 04 '18 08:09 BalaRishi-AMD

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.

shafik avatar Jan 31 '23 22:01 shafik