]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/ChangeLog
PR c++/86521 - wrong overload resolution with ref-qualifiers.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Mar 2019 03:19:22 +0000 (03:19 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 Mar 2019 03:19:22 +0000 (03:19 +0000)
commit4ca87658125bc7fdc1cc1bd42ba5ae9ae6b58670
tree97f7d2633863ab739c04134466c4d3070ac089b6
parentc860979e3e331e884e482ec46928e4113f6a6d71
PR c++/86521 - wrong overload resolution with ref-qualifiers.

Here we were wrongly treating binding a const lvalue ref to an xvalue as
direct binding, which is wrong under [dcl.init.ref] and [over.match.ref].

* call.c (build_user_type_conversion_1): Don't use a conversion to a
reference of the wrong rvalueness for direct binding.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269602 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/g++.dg/cpp0x/overload-conv-3.C [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/is_constructible/value-2.cc