PR c++/89705 - ICE with reference binding with conversion function.
authorMarek Polacek <polacek@redhat.com>
Mon, 25 Mar 2019 16:10:06 +0000 (16:10 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 25 Mar 2019 16:10:06 +0000 (16:10 +0000)
commita55f758221cfd574cc341f969c27f8ecdac087a4
treeae37d39cd2ce02bacc7f6f0124440727612d8ee4
parent8d6419db2cd99949022cd76cf6b1d0f93be0394b
PR c++/89705 - ICE with reference binding with conversion function.

* call.c (reference_binding): If the result of the conversion function
is a prvalue of non-class type, use the cv-unqualified type.

* g++.dg/cpp0x/rv-conv2.C: New test.

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