https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91849
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2020-01-29
CC| |marxin at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Clang provides:
$ clang++ pr91849.cc -c
pr91849.cc:5:8: error: non-const lvalue reference to type 'int' cannot bind to
a value of unrelated type 'float'
int &r = f;
^ ~
pr91849.cc:11:8: error: non-const lvalue reference to type 'int' cannot bind to
a temporary of type 'float'
int &r = 1.f;
^ ~~~
2 errors generated.