[LLVMbugs] [Bug 10766] New: clang crashes from gcc dejagnu test g++.dg/template/qualified-id2.C

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 25 21:31:38 PDT 2011


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

           Summary: clang crashes from gcc dejagnu test
                    g++.dg/template/qualified-id2.C
           Product: clang
           Version: 2.9
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rkotler at mips.com
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=7145)
 --> (http://llvm.org/bugs/attachment.cgi?id=7145)
qualified-id2.C

rkotler at ubuntu-rkotler:~/icpc$ ~/build_llvm/install/bin/clang++
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/template/qualified-id2.C
clang: /home/rkotler/workspace/llvm/tools/clang/lib/Sema/SemaExpr.cpp:7395:
clang::QualType CheckAddressOfOperand(clang::Sema&, clang::Expr*,
clang::SourceLocation): Assertion `0 && "Unknown/unexpected decl type"' failed.
0  clang           0x00000000028f3411
1  clang           0x00000000028f3204
2  libpthread.so.0 0x00007fbb9057b8f0
3  libc.so.6       0x00007fbb8f86aa75 gsignal + 53
4  libc.so.6       0x00007fbb8f86e5c0 abort + 384
5  libc.so.6       0x00007fbb8f863941 __assert_fail + 241
6  clang           0x00000000014b926f
7  clang           0x00000000014bbbcd
clang::Sema::CreateBuiltinUnaryOp(clang::SourceLocation,
clang::UnaryOperatorKind, clang::Expr*) + 313
8  clang           0x00000000014bc704 clang::Sema::BuildUnaryOp(clang::Scope*,
clang::SourceLocation, clang::UnaryOperatorKind, clang::Expr*) + 376
9  clang           0x00000000014bc75a clang::Sema::ActOnUnaryOp(clang::Scope*,
clang::SourceLocation, clang::tok::TokenKind, clang::Expr*) + 68
10 clang           0x0000000001384825 clang::Parser::ParseCastExpression(bool,
bool, bool&, bool) + 3493
11 clang           0x0000000001383a35 clang::Parser::ParseCastExpression(bool,
bool, bool) + 59
12 clang           0x0000000001382fcc
clang::Parser::ParseAssignmentExpression() + 154
13 clang           0x0000000001350067 clang::Parser::ParseInitializer() + 49
14 clang           0x000000000136a61a
clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&) + 1212
15 clang           0x000000000136a15b
clang::Parser::ParseDeclarationAfterDeclarator(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&) + 73
16 clang           0x0000000001350e5e
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&,
clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&,
clang::AccessSpecifier) + 798
17 clang           0x0000000001350af2
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 996
18 clang           0x0000000001350677
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier) + 175
19 clang           0x0000000001369515
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 193
20 clang           0x000000000135cefa
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1494
21 clang           0x000000000135c875
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 309
22 clang           0x000000000133b17a clang::ParseAST(clang::Sema&, bool) + 455
23 clang           0x000000000105f1a5 clang::ASTFrontendAction::ExecuteAction()
+ 263
24 clang           0x00000000011bcab8 clang::CodeGenAction::ExecuteAction() +
968
25 clang           0x000000000105edf6 clang::FrontendAction::Execute() + 326
26 clang           0x0000000001043f83
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 751
27 clang           0x0000000001015f33
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 912
28 clang           0x0000000001006b5c cc1_main(char const**, char const**, char
const*, void*) + 987
29 clang           0x0000000001011552 main + 499
30 libc.so.6       0x00007fbb8f855c4d __libc_start_main + 253
31 clang           0x00000000010061f9
Stack dump:
0.    Program arguments: /home/rkotler/build_llvm/install/bin/clang -cc1
-triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free
-main-file-name qualified-id2.C -mrelocation-model static -mdisable-fp-elim
-masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64
-target-linker-version 2.20.1 -momit-leaf-frame-pointer -resource-dir
/home/rkotler/build_llvm/install/bin/../lib/clang/3.0 -fdeprecated-macro
-ferror-limit 19 -fmessage-length 80 -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-fGoVQz.o -x c++
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/template/qualified-id2.C 
1.   
/home/rkotler/gcc-4.4.6/gcc/testsuite/g++.dg/template/qualified-id2.C:12:37:
current parser token ';'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 2 (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to http://llvm.org and
include command line arguments and all diagnostic information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/cc-noULAG.ii
rkotler at ubuntu-rkotler:~/icpc$

-- 
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