]> granicus.if.org Git - clang/commit
More work to bring reference binding up to the latest C++0x
authorDouglas Gregor <dgregor@apple.com>
Fri, 21 Jan 2011 00:52:42 +0000 (00:52 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 21 Jan 2011 00:52:42 +0000 (00:52 +0000)
commitb2855ad68d93824faf47c09bbef90ba74157f0f4
treef97eb5557e3ec55a462d4b776e7f712c4458ddda
parent564cb06b1f010ab3c5e316ac79ba6cfdd72e9c1d
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