https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119528
--- Comment #8 from akallabeth+gnu at posteo dot net --- Update on the workaround: while this indeed silences the deprecation warnings you now get -Wredundant-decl warnings instead... On 31.03.25 09:38, rguenth at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119528 > > Richard Biener <rguenth at gcc dot gnu.org> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > Keywords| |documentation > > --- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- > I can see that it's useful to have a related pack of deprecated functions > which > might reference each other. But that's not how deprecated is designed. > Whether attribution should be a use and diagnosed directly, or only diagnosed > when the attributed function is used is another thing. > > I think this should possibly be clarified in documentation and the workaround > pointed out there. >