[LLVMbugs] [Bug 11127] New: Failed assertion: `Result.isInvalid() && "C++ binary operator overloading is missing candidates!"'
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Oct 13 13:57:38 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=11127
Summary: Failed assertion: `Result.isInvalid() && "C++ binary
operator overloading is missing candidates!"'
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=7452)
--> (http://llvm.org/bugs/attachment.cgi?id=7452)
delta-reduced input (not valid code but manages to make clang++ crash)
Based on attachment 6824 from bug #10270 (different error, different
reduction):
% clang++ -c input.ii
[..]
clang:
/var/tmp/paludis/build/dev-lang-llvm-scm/work/llvm-scm/tools/clang/lib/Sema/../../include/clang/AST/DeclTemplate.h:1477:
void
clang::ClassTemplateSpecializationDecl::setInstantiationOf(clang::ClassTemplatePartialSpecializationDecl
*, clang::TemplateArgumentList *): Assertion
`!SpecializedTemplate.is<SpecializedPartialSpecialization*>() && "Already set
to a class template partial specialization!"' 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 0x00000000009c2628
clang::ClassTemplateSpecializationDecl::setInstantiationOf(clang::ClassTemplatePartialSpecializationDecl*,
clang::TemplateArgumentList*) + 152
7 clang 0x00000000009afd16
clang::Sema::InstantiateClassTemplateSpecialization(clang::SourceLocation,
clang::ClassTemplateSpecializationDecl*, clang::TemplateSpecializationKind,
bool) + 1718
8 clang 0x00000000009e720d
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::PartialDiagnostic const&, std::pair<clang::SourceLocation,
clang::PartialDiagnostic>) + 221
9 clang 0x00000000009e758d
clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType,
clang::PartialDiagnostic const&) + 77
10 clang 0x00000000007bdc85
clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&,
clang::DeclContext*) + 309
11 clang 0x000000000081831f
clang::Sema::getTypeName(clang::IdentifierInfo&, clang::SourceLocation,
clang::Scope*, clang::CXXScopeSpec*, bool, bool,
clang::OpaquePtr<clang::QualType>, bool, clang::IdentifierInfo**) + 383
12 clang 0x0000000000774f11
clang::Parser::TryAnnotateTypeOrScopeToken(bool, bool) + 1457
13 clang 0x000000000076d8a3
clang::Parser::isCXXDeclarationSpecifier() + 67
14 clang 0x000000000076e6cf
clang::Parser::isCXXTypeId(clang::Parser::TentativeCXXTypeIdContext, bool&) +
31
15 clang 0x0000000000795e4e
clang::Parser::ParseParenExpression(clang::Parser::ParenParseOption&, bool,
bool, clang::OpaquePtr<clang::QualType>&, clang::SourceLocation&) + 1134
16 clang 0x0000000000793bd3
clang::Parser::ParseCastExpression(bool, bool, bool&, bool) + 195
17 clang 0x00000000007921a9
clang::Parser::ParseAssignmentExpression() + 121
18 clang 0x000000000077fb3d
clang::Parser::ParseDeclarationAfterDeclaratorAndAttributes(clang::Declarator&,
clang::Parser::ParsedTemplateInfo const&) + 941
19 clang 0x000000000077f356
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1366
20 clang 0x0000000000772f74
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 676
21 clang 0x000000000077314a
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 394
22 clang 0x000000000077248c
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 2700
23 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
24 clang 0x0000000000788de9 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 3337
25 clang 0x000000000077cbec
clang::Parser::ParseDeclaration(clang::ASTOwningVector<clang::Stmt*, 32u>&,
unsigned int, clang::SourceLocation&,
clang::Parser::ParsedAttributesWithRange&) + 508
26 clang 0x0000000000772077
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 1655
27 clang 0x000000000077198e
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 254
28 clang 0x0000000000758f1e clang::ParseAST(clang::Sema&, bool) +
318
29 clang 0x000000000066de91 clang::CodeGenAction::ExecuteAction() +
769
30 clang 0x0000000000567167
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983
31 clang 0x0000000000551cd0
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2848
32 clang 0x000000000054992b cc1_main(char const**, char const**,
char const*, void*) + 5787
33 clang 0x000000000054e29a main + 634
34 libc.so.6 0x00007ffff579ac7d __libc_start_main + 253
35 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 input.ii -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 input.o -resource-dir /usr/bin/../lib/clang/3.0
-fdeprecated-macro -ferror-limit 19 -fmessage-length 118 -fgnu-runtime
-fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-fragile-abi
-fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o
input.o -x c++-cpp-output input.ii
1. input.ii:29:133: current parser token 'run'
2. input.ii:5:1: parsing namespace 'internal'
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: Error generating preprocessed source(s) - no
preprocessable inputs.
%
--
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