[LLVMbugs] [Bug 19787] New: Assertion `ClassDecl->hasFlexibleArrayMember() && "Incomplete array type is not valid"' failed.
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon May 19 03:24:54 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19787
Bug ID: 19787
Summary: Assertion `ClassDecl->hasFlexibleArrayMember() &&
"Incomplete array type is not valid"' failed.
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: andrea.dibiagio at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 12537
--> http://llvm.org/bugs/attachment.cgi?id=12537&action=edit
Test case
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::ArrayRef<clang::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
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140519/64880f2f/attachment.html>
More information about the llvm-bugs
mailing list