[LLVMbugs] [Bug 15081] New: clang -std=c++11 -larmadillo main.cpp Aborted (core dumped)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jan 27 08:48:11 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=15081

             Bug #: 15081
           Summary: clang  -std=c++11 -larmadillo main.cpp Aborted (core
                    dumped)
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: oranjsr at optonline.net
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


clang:
/home/ojohnson/OpenSource/clingsrc/llvm/tools/clang/lib/Sema/SemaLookup.cpp:316:
void clang::LookupResult::sanityImpl() const: Assertion `ResultKind !=
FoundUnresolvedValue || sanityCheckUnresolved()' failed.
0  clang           0x0000000001d9a9df
1  clang           0x0000000001d9ae99
2  libpthread.so.0 0x00000032e280f000
3  libc.so.6       0x00000032e2435ba5 gsignal + 53
4  libc.so.6       0x00000032e2437358 abort + 328
5  libc.so.6       0x00000032e242e972
6  libc.so.6       0x00000032e242ea22
7  clang           0x0000000000d84b1f clang::LookupResult::sanityImpl() const +
383
8  clang           0x0000000000d8a312
clang::Sema::LookupName(clang::LookupResult&, clang::Scope*, bool) + 1026
9  clang           0x0000000000c76697
clang::Sema::HandleDeclarator(clang::Scope*, clang::Declarator&,
llvm::MutableArrayRef<clang::TemplateParameterList*>) + 1639
10 clang           0x0000000000cb8ad9
clang::Sema::ActOnCXXMemberDeclarator(clang::Scope*, clang::AccessSpecifier,
clang::Declarator&, llvm::MutableArrayRef<clang::TemplateParameterList*>,
clang::Expr*, clang::VirtSpecifiers const&, clang::InClassInitStyle) + 345
11 clang           0x0000000000b8351c
clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier,
clang::AttributeList*, clang::Parser::ParsedTemplateInfo const&,
clang::ParsingDeclRAIIObject*) + 3708
12 clang           0x0000000000b84c1c
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int,
clang::Decl*) + 1516
13 clang           0x0000000000b86607
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext) + 3863
14 clang           0x0000000000b6f375
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext,
llvm::SmallVector<clang::Parser::LateParsedAttribute*, 2u>*) + 4997
15 clang           0x0000000000bc2b7f
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 927
16 clang           0x0000000000bc4028
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 696
17 clang           0x0000000000bc44fe
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 158
18 clang           0x0000000000b76421
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 545
19 clang           0x0000000000b60bfb
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 203
20 clang           0x0000000000b802ea
clang::Parser::ParseInnerNamespace(std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, std::vector<clang::IdentifierInfo*,
std::allocator<clang::IdentifierInfo*> >&, std::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) + 378
21 clang           0x0000000000b81b9d clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 1597
22 clang           0x0000000000b7644b
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 587
23 clang           0x0000000000b60bfb
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 203
24 clang           0x0000000000b6125d
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 189
25 clang           0x0000000000b5c469 clang::ParseAST(clang::Sema&, bool, bool)
+ 281
26 clang           0x0000000000a1aee4 clang::CodeGenAction::ExecuteAction() +
68
27 clang           0x00000000008c8c23 clang::FrontendAction::Execute() + 131
28 clang           0x00000000008a8741
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 321
29 clang           0x000000000088f20d
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1421
30 clang           0x0000000000888e1a cc1_main(char const**, char const**, char
const*, void*) + 6922
31 clang           0x000000000087c100 main + 8000
32 libc.so.6       0x00000032e2421a05 __libc_start_main + 245
33 clang           0x00000000008866e9
Stack dump:
0.    Program arguments: /usr/local/cling/bin/clang -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name
main.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-target-linker-version 2.23.51.0.1 -momit-leaf-frame-pointer -resource-dir
/usr/local/cling/bin/../lib/clang/3.2 -fmodule-cache-path
/var/tmp/clang-module-cache -internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/x86_64-redhat-linux
-internal-isystem
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../include/c++/4.7.2/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/local/cling/bin/../lib/clang/3.2/include -internal-externc-isystem
/include -internal-externc-isystem /usr/include -std=c++11 -fdeprecated-macro
-fdebug-compilation-dir /home/ojohnson/cling -ferror-limit 19 -fmessage-length
140 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/main-fLTBwy.o -x c++
main.cpp 
1.    /usr/include/armadillo_bits/Col_bones.hpp:195:62: current parser token
';'
2.    /usr/include/armadillo:97:1: parsing namespace 'arma'
3.    /usr/include/armadillo_bits/Col_bones.hpp:135:1: parsing
struct/union/class body 'fixed'
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.2 (trunk 165095)
Target: x86_64-unknown-linux-gnu
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/main-7l3sae.cpp
clang: note: diagnostic msg: /tmp/main-7l3sae.sh
clang: note: diagnostic msg: 

********************

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list