https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110565
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Incomplete note on why |[10/11/12/13/14 Regression] |initializing int& with int |Incomplete note on why |is ill-formed |initializing int& with int | |is ill-formed Ever confirmed|0 |1 Known to fail| |5.1.0 Status|UNCONFIRMED |NEW Last reconfirmed| |2023-07-05 Known to work| |4.9.4 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- GCC 4.9 and before gave a slightly better error message: <source>: In function 'void f()': <source>:8:12: error: no matching function for call to 'X::X(int)' new X(0); ^ <source>:8:12: note: candidate is: <source>:2:5: note: X::X(int&) X(int&); ^ <source>:2:5: note: no known conversion for argument 1 from 'int' to 'int&'