llvm-project
llvm-project copied to clipboard
Assertion `ClassDecl->hasFlexibleArrayMember() && "Incomplete array type is not valid"' failed.
| 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.
...
- 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
Clang no longer asserts for this case. Closing as fixed (with Andrea's agreement).