diff options
author | Jason Merrill <jason@redhat.com> | 2021-04-08 08:23:17 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2021-04-08 12:02:27 -0400 |
commit | 9f74f9cf47ed9d65e65a06378041e9dd5698e49d (patch) | |
tree | 97dfd41e1cebae85a2d941549a1ccf5c8359a8d9 /gcc/explow.c | |
parent | 94279aacd061623a160b8dc1b9ea267ee435b0f8 (diff) | |
download | gcc-9f74f9cf47ed9d65e65a06378041e9dd5698e49d.zip gcc-9f74f9cf47ed9d65e65a06378041e9dd5698e49d.tar.gz gcc-9f74f9cf47ed9d65e65a06378041e9dd5698e49d.tar.bz2 |
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.
Diffstat (limited to 'gcc/explow.c')
0 files changed, 0 insertions, 0 deletions