[Bug c++/88036] bogus "was not declared in this scope; did you mean ...?" fix-it when the declaration was ill-formed

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 15 15:01:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88036

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Slightly simpler testcase, that doesn't need the attribute to avoid the
-Wunused-variable warning:

int food = 0;

void* f()
{
  undeclared_type fool;
  return &fool;
}


More information about the Gcc-bugs mailing list