https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83394
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I think it would be better to get rid of the last_decl stuff and instead diagnose what hasn't been diagnosed yet and duplicate_decl time when processing attributes there.