When assigning from an rvalue to a const reference, the implicit cast from T -> const T is not an lvalue cast.

llvm-svn: 72082
This commit is contained in:
Anders Carlsson 2009-05-19 00:38:24 +00:00
parent be81045db7
commit 97c793ad1c
1 changed files with 1 additions and 1 deletions

View File

@ -2269,7 +2269,7 @@ Sema::CheckReferenceInit(Expr *&Init, QualType DeclType,
} else { } else {
// FIXME: Binding to a subobject of the rvalue is going to require more // FIXME: Binding to a subobject of the rvalue is going to require more
// AST annotation than this. // AST annotation than this.
ImpCastExprToType(Init, T1, /*isLvalue=*/true); ImpCastExprToType(Init, T1, /*isLvalue=*/false);
} }
return false; return false;
} }