https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112318

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
As this bug points out, we probably want to warn for any uses of deprecated
entities declared in user code, whether used in system headers or in user code.

And for something like std::auto_ptr which is declared in a system header, we
want to warn if it's used in user code.

So I think we should only suppress the warning when the declaration *and* the
use are both in system headers.

Reply via email to