https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83503
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> --- Created attachment 43275 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43275&action=edit starting point e.g. this which would then call into a version of diag_attr_exclusions that removes the conflicting attribute rather than complain.