https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89705
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Mon Mar 25 16:10:06 2019 New Revision: 269918 URL: https://gcc.gnu.org/viewcvs?rev=269918&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/g++.dg/cpp0x/rv-conv2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/call.c trunk/gcc/testsuite/ChangeLog