[LLVMbugs] [Bug 11134] New: Failed assertion: `(Previous.empty() || Previous.isOverloadedResult() || Previous.isSingleResult()) && "Lookup of member name should be either overloaded, single or null"'

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 14 13:09:37 PDT 2011


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

           Summary: Failed assertion: `(Previous.empty() ||
                    Previous.isOverloadedResult() ||
                    Previous.isSingleResult()) && "Lookup of member name
                    should be either overloaded, single or null"'
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: pipping at exherbo.org
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


Created an attachment (id=7456)
 --> (http://llvm.org/bugs/attachment.cgi?id=7456)
delta-reduced input (not valid code but manages to make clang++ crash)

% clang++ -c -x c++ output-minimal
[..]
clang: SemaDecl.cpp:8384: clang::FieldDecl
*clang::Sema::HandleField(clang::Scope *, clang::RecordDecl *,
clang::SourceLocation, clang::Declarator &, clang::Expr *, bool,
clang::AccessSpecifier): Assertion `(Previous.empty() ||
Previous.isOverloadedResult() || Previous.isSingleResult()) && "Lookup of
member name should be either overloaded, single or null"' failed.
0  libLLVM-3.0svn.so 0x00007ffff73fc64f
1  libLLVM-3.0svn.so 0x00007ffff73fcb69
2  libpthread.so.0   0x00007ffff6490f70
3  libc.so.6         0x00007ffff57ae5c5 gsignal + 53
4  libc.so.6         0x00007ffff57af8c5 abort + 389
5  libc.so.6         0x00007ffff57a7235 __assert_fail + 245
6  clang             0x000000000083aa81 clang::Sema::HandleField(clang::Scope*,
clang::RecordDecl*, clang::SourceLocation, clang::Declarator&, clang::Expr*,
bool, clang::AccessSpecifier) + 1249
7  clang             0x000000000085d608
clang::Sema::ActOnCXXMemberDeclarator(clang::Scope*, clang::AccessSpecifier,
clang::Declarator&, clang::ASTMultiPtr<clang::TemplateParameterList*>,
clang::Expr*, clang::VirtSpecifiers const&, bool) + 1656
8  clang             0x000000000078f652
clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier,
clang::AttributeList*, clang::Parser::ParsedTemplateInfo const&,
clang::Parser::ParsingDeclRAIIObject*) + 4930
9  clang             0x000000000078d659
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int,
clang::Decl*) + 2249
10 clang             0x000000000078c79c
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool) + 4796
11 clang             0x000000000077db2c
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 2844
12 clang             0x000000000078eaf2
clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier,
clang::AttributeList*, clang::Parser::ParsedTemplateInfo const&,
clang::Parser::ParsingDeclRAIIObject*) + 2018
13 clang             0x0000000000769b4d
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&,
clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&,
clang::AccessSpecifier, clang::AttributeList*) + 77
14 clang             0x0000000000769934
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 740
15 clang             0x000000000076957f
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 351
16 clang             0x000000000078e8ba
clang::Parser::ParseCXXClassMemberDeclaration(clang::AccessSpecifier,
clang::AttributeList*, clang::Parser::ParsedTemplateInfo const&,
clang::Parser::ParsingDeclRAIIObject*) + 1450
17 clang             0x000000000078d659
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation, unsigned int,
clang::Decl*) + 2249
18 clang             0x000000000078c79c
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool) + 4796
19 clang             0x000000000077db2c
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext) + 2844
20 clang             0x0000000000769dc8
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&,
clang::Parser::ParsingDeclRAIIObject&, clang::SourceLocation&,
clang::AccessSpecifier, clang::AttributeList*) + 712
21 clang             0x0000000000769934
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 740
22 clang             0x000000000076957f
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 351
23 clang             0x000000000077cb70
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 384
24 clang             0x0000000000772077
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1655
25 clang             0x0000000000789295
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::Parser::BalancedDelimiterTracker&) + 181
26 clang             0x0000000000788de9 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 3337
27 clang             0x000000000077cbec
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 508
28 clang             0x0000000000772077
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1655
29 clang             0x000000000077198e
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 254
30 clang             0x0000000000758f1e clang::ParseAST(clang::Sema&, bool) +
318
31 clang             0x000000000066de91 clang::CodeGenAction::ExecuteAction() +
769
32 clang             0x0000000000567167
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983
33 clang             0x0000000000551cd0
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2848
34 clang             0x000000000054992b cc1_main(char const**, char const**,
char const*, void*) + 5787
35 clang             0x000000000054e29a main + 634
36 libc.so.6         0x00007ffff579ac7d __libc_start_main + 253
37 clang             0x00000000005481c9
Stack dump:
0.      Program arguments: /usr/bin/clang -cc1 -triple x86_64-pc-linux-gnu
-emit-obj -mrelax-all -disable-free -main-file-name output-minimal
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -target-linker-version 2.21.1
-momit-leaf-frame-pointer -coverage-file output-minimal.o -resource-dir
/usr/bin/../lib/clang/3.0 -fmodule-cache-path /var/tmp/clang-module-cache
-fdeprecated-macro -ferror-limit 19 -fmessage-length 238 -fgnu-runtime
-fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
output-minimal.o -x c++ output-minimal 
1.      output-minimal:15:11: current parser token '='
2.      output-minimal:1:1: parsing namespace 'internal'
3.      output-minimal:9:1: parsing struct/union/class body 'dense_xpr_base'
4.      output-minimal:11:28: parsing struct/union/class body 'MapBase'
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/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) are located at:
clang: note: diagnostic msg: /tmp/output-minimal-3baqMR.ii
%

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