https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79078
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Then we get _another_ warning on the definition of that member function: struct [[deprecated("D is bad mmmkay")]] D { void f(const D&); }; void D::f(const D&) { } d.cc:2:18: warning: āDā is deprecated [-Wdeprecated-declarations] void f(const D&); ^ d.cc:5:19: warning: āDā is deprecated [-Wdeprecated-declarations] void D::f(const D&) { } ^