[LLVMbugs] [Bug 8023] New: clang c++ assertion "Invalid opcode for overloaded unary operator" using __real__ on expression of class type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 29 13:15:11 PDT 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: sharparrow1 at yahoo.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list