PR c++/87109, wrong overload with ref-qualifiers.
commit62c21ceea64291317650258921c34dea79b1e96b
authorMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 5 Sep 2018 21:17:47 +0000 (5 21:17 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Wed, 5 Sep 2018 21:17:47 +0000 (5 21:17 +0000)
treefd16f085a85e12e1a1f4de48c05682914012a593
parentf6b95f78f8048e2fe726b6caf91d606f36f4d8c4
PR c++/87109, wrong overload with ref-qualifiers.

* call.c (build_user_type_conversion_1): Use NULL instead of 0.  Bail
out if performing the maybe-rvalue overload resolution and a conversion
function is getting called.

* g++.dg/cpp0x/ref-qual19.C: New test.

From-SVN: r264132
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/ref-qual19.C [new file with mode: 0644]