]> granicus.if.org Git - clang/commit
Don't allow an rvalue reference to bind to the result of a calling a
authorDouglas Gregor <dgregor@apple.com>
Tue, 4 Oct 2011 23:59:32 +0000 (23:59 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 4 Oct 2011 23:59:32 +0000 (23:59 +0000)
commit203050c2d5413c3f7e18dfa39451bf6f954136ca
treebd4f8d6bf7b305484e61cf49f2a89259fee9500e
parentcbb7add8d7e3f868a6695a601e45fc13257bd9f5
Don't allow an rvalue reference to bind to the result of a calling a
conversion function whose result type is an lvalue reference. The
initialization code already handled this properly, but overload
resolution was allowing the binding. Fixes PR11003 /
<rdar://problem/10233078>.

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