https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99729
Bug ID: 99729
Summary: Tweak -Wdeprecated-declarations with namespaces
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mpolacek at gcc dot gnu.org
Target Milestone: ---
namespace [[deprecated]] N { struct S { }; }
using namespace N;
S s;
we should warn about the using-directive, but not also the declaration
of 's'.
(From https://gcc.gnu.org/pipermail/gcc-patches/2021-March/567148.html.)