https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89705
--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Tue May 7 16:28:11 2019 New Revision: 270973 URL: https://gcc.gnu.org/viewcvs?rev=270973&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. Added: branches/gcc-8-branch/gcc/testsuite/g++.dg/cpp0x/rv-conv2.C Modified: branches/gcc-8-branch/gcc/cp/ChangeLog branches/gcc-8-branch/gcc/cp/call.c