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

           Summary: lvalue-to-rvalue applied to r-value
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++0x
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


clang crashes in:

struct MoveRef {
  operator int&& () const;
};
MoveRef Move(const int &t);
void moveConstruct() {
  const int *p = 0;
  int(Move(*p));
}


with

CGExprScalar.cpp:1157: llvm::Value *<anonymous
namespace>::ScalarExprEmitter::VisitCastExpr(clang::CastExpr *): Assertion
`E->isGLValue() && "lvalue-to-rvalue applied to r-value!"' 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