https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |msebor at gcc dot gnu.org --- Comment #6 from Martin Sebor <msebor at gcc dot gnu.org> --- This also affects C (and possibly Objective C/C++). Not sure what Component might cover both (or all) or if they each need their own bug. $ cat t.c && gcc -S t.c struct __attribute__ ((deprecated ("D is bad mmmkay"))) D { }; struct D d1, d2; t.c:3:8: warning: āDā is deprecated: D is bad mmmkay [-Wdeprecated-declarations] struct D d1, d2; ^ t.c:1:57: note: declared here struct __attribute__ ((deprecated ("D is bad mmmkay"))) D { }; ^ t.c:3:8: warning: āDā is deprecated: D is bad mmmkay [-Wdeprecated-declarations] struct D d1, d2; ^ t.c:1:57: note: declared here struct __attribute__ ((deprecated ("D is bad mmmkay"))) D { }; ^