http://llvm.org/bugs/show_bug.cgi?id=22849
Bug ID: 22849
Summary: Assertion fail at lib/AST/Decl.cpp:1856
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 14010
--> http://llvm.org/bugs/attachment.cgi?id=14010&action=edit
Example file core.c and build.log
Clang fails to build the example core.c code with:
core.c:17:930: error: non-const static data member must be initialized out of
line
In debug mode it gives an assertion fail.
lib/AST/Decl.cpp:1856: bool isDeclExternC(const T &) [T = clang::VarDecl]:
Assertion `D.getASTContext().getLangOpts().CPlusPlus' failed.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs