https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80567
David Malcolm <dmalcolm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dmalcolm at gcc dot gnu.org --- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Seen also with: void test () { FILE *f; } for which g++ prints the nonsensical: t.cc: In function ‘void test()’: t.cc:3:3: error: ‘FILE’ was not declared in this scope FILE *f; ^~~~ t.cc:3:9: error: ‘f’ was not declared in this scope FILE *f; ^ t.cc:3:9: note: suggested alternative: ‘if’ FILE *f; ^ if