https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116441
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This is a dup of bug 85973. I even make mention of moving the attribute to the constructor makes the warning/error happen: > Note if we move the attribute to the constructor, then GCC will error out. *** This bug has been marked as a duplicate of bug 85973 ***