[LLVMbugs] [Bug 22849] New: Assertion fail at lib/AST/Decl.cpp:1856

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 8 20:15:11 PDT 2015


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: unassignedclangbugs at nondot.org
          Reporter: viniciustinti at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150309/6769c267/attachment.html>


More information about the llvm-bugs mailing list