https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83820
Eric Gallager <egallager at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |accepts-invalid --- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to Martin Sebor from comment #1) > Confirmed, thanks. GCC 8 does a better job diagnosing these issues (e.g., > it complains about attribute malloc on a void function) but this case was > missed in r255469. There probably are other meaningless declarations that > would be helpful to warn about so please open a new bug for each. I think the reporter is asking for a hard error and not just a warning? Reads like an accepts-invalid to me (on this reading at least)