https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91849
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> --- g++ 4.9.4 gives a seemingly better diagnostic: q.C: In function 'void g()': q.C:5:12: error: invalid initialization of reference of type 'int&' from expression of type 'float' int &r = f; ^ q.C: In function 'void g2()': q.C:11:12: error: invalid initialization of non-const reference of type 'int&' from an rvalue of type 'float' int &r = 1.f; ^ So should this be classified as a regression?