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. From-SVN: r269602
Showing
gcc/testsuite/g++.dg/cpp0x/overload-conv-3.C
0 → 100644
Please
register
or
sign in
to comment