https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91849
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:9f74f9cf47ed9d65e65a06378041e9dd5698e49d commit r11-8058-g9f74f9cf47ed9d65e65a06378041e9dd5698e49d Author: Jason Merrill <ja...@redhat.com> Date: Thu Apr 8 08:23:17 2021 -0400 c++: improve reference binding diagnostic [PR91849] Here we were complaining about binding the lvalue reference to the rvalue result of converting from float to int, but didn't mention that conversion. Talk about the type of the initializer instead. gcc/cp/ChangeLog: PR c++/91849 * call.c (convert_like_internal): Improve reference diagnostic. gcc/testsuite/ChangeLog: PR c++/91849 * g++.dg/conversion/pr66211.C: Adjust diagnostic. * g++.dg/conversion/ref7.C: New test.