https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83271
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Can't we simply force it public when processing the attribute and let duplicate-decl complain when merging a previous declaration/definition?