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

Assertion `ClassDecl->hasFlexibleArrayMember() && "Incomplete array type is not valid"' failed.

Open adibiagio opened this issue 12 years ago • 1 comments

Bugzilla Link 19787
Resolution FIXED
Resolved on Jul 26, 2017 08:58
Version trunk
OS All
Attachments Test case
CC @adibiagio,@DougGregor

Extended Description

Clang fails to compile the attached test case with the following assertion failure:

clang: llvm/tools/clang/lib/Sema/SemaDeclCXX.cpp:3668: bool clang::Sema::SetCtorInitializers(clang::CXXConstructorDecl*, bool, llvm::ArrayRefclang::CXXCtorInitializer*): Assertion `ClassDecl->hasFlexibleArrayMember() && "Incomplete array type is not valid"' failed.

...

  1. test.cpp:9:6: current parser token ';' clang: error: unable to execute command: Aborted (core dumped) clang: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.5.0 (trunk 209116) Target: x86_64-unknown-linux-gnu Thread model: posix

adibiagio avatar May 19 '14 12:05 adibiagio

Clang no longer asserts for this case. Closing as fixed (with Andrea's agreement).

llvmbot avatar Jul 26 '17 15:07 llvmbot