[LLVMbugs] [Bug 11009] New: lvalue-to-rvalue applied to r-value

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Sep 25 17:39:58 PDT 2011


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

clang crashes in:

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


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.

More information about the llvm-bugs mailing list