[Bug c++/80567] bogus fixit hint for undeclared memset: else
dmalcolm at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Oct 16 13:55:00 GMT 2017
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
More information about the Gcc-bugs
mailing list