More work to bring reference binding up to the latest C++0x
commit1e21dc75e0d9b225963502c12c2af55b2170e2ab
authorDouglas Gregor <doug.gregor@gmail.com>
Fri, 21 Jan 2011 00:52:42 +0000 (21 00:52 +0000)
committerDouglas Gregor <doug.gregor@gmail.com>
Fri, 21 Jan 2011 00:52:42 +0000 (21 00:52 +0000)
treef97eb5557e3ec55a462d4b776e7f712c4458ddda
parent440fc3392a69df4656c5b9e716c2be2dc07aefc6
More work to bring reference binding up to the latest C++0x
specification. In particular, an rvalue reference can bind to an
initializer expression that is an lvalue if the referent type and the
initializer expression type are not reference-related. This is a newer
formulation to the previous "rvalue references can never bind to
lvalues" rule.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123952 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaInit.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-0x.cpp
test/SemaCXX/rval-references.cpp