https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99720
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Keywords| |diagnostic Last reconfirmed| |2021-03-23 Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. The caret diagnostic will probably ring a bell for the user but a fixit hint would be nice indeed: t.c:1:15: error: expected ';', ',' or ')' before '&' token 1 | void foo (int &i); | ^