[cfe-commits] r72082 - /cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Anders Carlsson
andersca at mac.com
Mon May 18 17:38:26 PDT 2009
Author: andersca
Date: Mon May 18 19:38:24 2009
New Revision: 72082
URL: http://llvm.org/viewvc/llvm-project?rev=72082&view=rev
Log:
When assigning from an rvalue to a const reference, the implicit cast from T -> const T is not an lvalue cast.
Modified:
cfe/trunk/lib/Sema/SemaDeclCXX.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclCXX.cpp?rev=72082&r1=72081&r2=72082&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclCXX.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclCXX.cpp Mon May 18 19:38:24 2009
@@ -2269,7 +2269,7 @@
} else {
// FIXME: Binding to a subobject of the rvalue is going to require more
// AST annotation than this.
- ImpCastExprToType(Init, T1, /*isLvalue=*/true);
+ ImpCastExprToType(Init, T1, /*isLvalue=*/false);
}
return false;
}
More information about the cfe-commits
mailing list