https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92670
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |RESOLVED
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=79078
Resolution|--- |DUPLICATE
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
As requested by https://gcc.gnu.org/bugs/ please provide a complete testcase,
your example doesn't even compile.
Here's a proper testcase:
struct sha1;
[[deprecated("old")]]
void flush(sha1&);
void f(sha1& s)
{
flush(s);
}
This prints:
depr.cc: In function 'void f(sha1&)':
depr.cc:8:10: warning: 'void flush(sha1&)' is deprecated: old
[-Wdeprecated-declarations]
8 | flush(s);
| ^
depr.cc:4:6: note: declared here
4 | void flush(sha1&);
| ^~~~~
depr.cc:8:10: warning: 'void flush(sha1&)' is deprecated: old
[-Wdeprecated-declarations]
8 | flush(s);
| ^
depr.cc:4:6: note: declared here
4 | void flush(sha1&);
| ^~~~~
I think this is a dup of PR 67960
*** This bug has been marked as a duplicate of bug 67960 ***