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

           Summary: Sema: Can't find templated cast operator
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Attached is short test file which compiles fine with g++, but the trunk
version r131043 of clang failed to compile it.

linux-olg4:~$ src/build-llvm/bin/clang++ ./a.cpp -o a
clang-3.0: /home/pbn/src/llvm/tools/clang/lib/Sema/SemaOverload.cpp:8371:
clang::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.
Stack dump:
0.      Program arguments: /home/pbn/src/build-llvm/bin/clang-3.0 -cc1 -triple
i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free -main-file-name a.cpp
-mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases
-target-cpu pentium4 -momit-leaf-frame-pointer -resource-dir
/home/pbn/src/build-llvm/bin/../lib/clang/3.0 -fdeprecated-macro -ferror-limit
19 -fmessage-length 211 -fcxx-exceptions -fexceptions -fgnu-runtime
-fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-3RcZDb.o -x c++
./a.cpp 
1.      ./a.cpp:67:39: current parser token ';'
2.      ./a.cpp:66:1: parsing function body 'main'
3.      ./a.cpp:66:1: in compound statement ('{}')
clang-3: error: unable to execute command: Aborted
clang-3: error: clang frontend command failed due to signal 1 (use -v to see
invocation)

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to