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

           Summary: clang c++ assertion "Invalid opcode for overloaded
                    unary operator" using __real__ on expression of class
                    type
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: crash-on-invalid
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


Testcase:
struct A {};
int i = __real__ A();

Crashes with:
clang: SemaOverload.cpp:6754: clang::ExprResult
clang::Sema::CreateOverloadedUnaryOp(clang::SourceLocation, unsigned int, const
clang::UnresolvedSetImpl&, clang::Expr*): Assertion `Op != OO_None && "Invalid
opcode for overloaded unary operator"' failed.

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