https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96117
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2020-07-08 Status|UNCONFIRMED |NEW Keywords| |rejects-valid Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- This one works too of course, but isn't helpful if you don't control the macros: struct [[gnu::visibility("default")]] [[deprecated("a message")]] A3 { };