When performing reference binding via a conversion function, perform
commit440fc3392a69df4656c5b9e716c2be2dc07aefc6
authorDouglas Gregor <doug.gregor@gmail.com>
Fri, 21 Jan 2011 00:27:08 +0000 (21 00:27 +0000)
committerDouglas Gregor <doug.gregor@gmail.com>
Fri, 21 Jan 2011 00:27:08 +0000 (21 00:27 +0000)
treec1041024624c018a4bdce64d957e77bfe2444adc
parenta4346772a396d09e59b01d3620b2bcde726130f7
When performing reference binding via a conversion function, perform
type checking based on the actual reference type we're trying to bind
the result to, rather than stripping the reference.

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