[Bug c++/91849] [8/9/10/11 Regression] Misleading diagnostic message when binding reference to unrelated type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91849 --- Comment #6 from CVS Commits --- The master branch has been updated by Jason Merrill : https://gcc.gnu.org/g:9f74f9cf47ed9d65e65a06378041e9dd5698e49d commit r11-8058-g9f74f9cf47ed9d65e65a06378041e9dd5698e49d Author: Jason Merrill 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.
[Bug c++/91849] [8/9/10/11 Regression] Misleading diagnostic message when binding reference to unrelated type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91849 Jason Merrill changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org CC||jason at gcc dot gnu.org Status|NEW |ASSIGNED
[Bug c++/91849] [8/9/10/11 Regression] Misleading diagnostic message when binding reference to unrelated type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91849 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek --- Regressed with r5-601-gd02f620dc0bb3bea393d04b8639a1f4748ad8821
[Bug c++/91849] [8/9/10/11 Regression] Misleading diagnostic message when binding reference to unrelated type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91849 Richard Biener changed: What|Removed |Added Priority|P3 |P2
[Bug c++/91849] [8/9/10/11 Regression] Misleading diagnostic message when binding reference to unrelated type
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91849 Patrick Palka changed: What|Removed |Added Known to fail||10.1.0, 11.0, 8.4.0, 9.3.0 Summary|Misleading diagnostic |[8/9/10/11 Regression] |message when binding|Misleading diagnostic |reference to unrelated type |message when binding ||reference to unrelated type Known to work||4.9.4 Target Milestone|--- |8.5 Version|unknown |11.0 Last reconfirmed|2020-01-29 00:00:00 |2020-5-7 --- Comment #4 from Patrick Palka --- Marked as a regression then.