Re-instate r123977/r123978, my updates of the reference-binding
commitad7077531471e7623a316e4f467159da70fb3656
authorDouglas Gregor <doug.gregor@gmail.com>
Mon, 24 Jan 2011 16:14:37 +0000 (24 16:14 +0000)
committerDouglas Gregor <doug.gregor@gmail.com>
Mon, 24 Jan 2011 16:14:37 +0000 (24 16:14 +0000)
tree926ec6608ecc240a7101b0f595d33840afb6f75f
parentda9d35c0a6d4ac601f3d968f9fe02fc17f4641eb
Re-instate r123977/r123978, my updates of the reference-binding
implementation used by overload resolution to support rvalue
references. The original commits caused PR9026 and some
hard-to-reproduce self-host breakage.

The only (crucial!) difference between this commit and the previous
commits is that we now properly check the SuppressUserConversions flag
before attempting to perform a second user-defined conversion in
reference binding, breaking the infinite recursion chain of
user-defined conversions.

Rvalue references should be working a bit better now.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124121 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOverload.cpp
lib/Sema/SemaTemplate.cpp
test/CXX/dcl.decl/dcl.init/dcl.init.ref/p5-0x.cpp
test/SemaCXX/conditional-expr.cpp
test/SemaCXX/decl-init-ref.cpp