[LLVMbugs] [Bug 11128] 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 16:24:28 PDT 2011


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

           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=7454)
 --> (http://llvm.org/bugs/attachment.cgi?id=7454)
delta-reduced input (not valid code but manages to make clang++ crash)

Yet another reduction of attachment 6824 from bug #10270 (for another reduction
with another error, see e.g. bug #11127).


% clang++ -c input.ii 
[..]
clang: SemaOverload.cpp:9038: ExprResult
clang::Sema::CreateOverloadedBinOp(clang::SourceLocation, unsigned int, const
clang::UnresolvedSetImpl &, clang::Expr *, clang::Expr *): Assertion
`Result.isInvalid() && "C++ binary operator overloading is missing
candidates!"' 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             0x00000000009378cd
7  clang             0x00000000008b42b2 clang::Sema::BuildBinOp(clang::Scope*,
clang::SourceLocation, clang::BinaryOperatorKind, clang::Expr*, clang::Expr*) +
450
8  clang             0x00000000009b26d3
9  clang             0x00000000009b1e46
10 clang             0x00000000009c0735
11 clang             0x00000000009b0e09
12 clang             0x00000000009b03a7 clang::Sema::SubstStmt(clang::Stmt*,
clang::MultiLevelTemplateArgumentList const&) + 87
13 clang             0x00000000009cc370
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 2176
14 clang             0x00000000009cd372
clang::Sema::PerformPendingInstantiations(bool) + 466
15 clang             0x00000000007b2189
clang::Sema::ActOnEndOfTranslationUnit() + 393
16 clang             0x0000000000771900
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 112
17 clang             0x0000000000758f1e clang::ParseAST(clang::Sema&, bool) +
318
18 clang             0x000000000066de91 clang::CodeGenAction::ExecuteAction() +
769
19 clang             0x0000000000567167
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983
20 clang             0x0000000000551cd0
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2848
21 clang             0x000000000054992b cc1_main(char const**, char const**,
char const*, void*) + 5787
22 clang             0x000000000054e29a main + 634
23 libc.so.6         0x00007ffff579ac7d __libc_start_main + 253
24 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.      <eof> parser at end of file
2.      input.ii:25:6: instantiating function definition
'apply_rotation_in_the_plane'
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