https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100596
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Rejecting such code was the point of the patch. I guess we'll have to either downgrade to a warning or just not complain about GNU attributes at all.