public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99729] New: Tweak -Wdeprecated-declarations with namespaces
@ 2021-03-23 15:01 mpolacek at gcc dot gnu.org
  2021-03-23 15:01 ` [Bug c++/99729] " mpolacek at gcc dot gnu.org
  2021-03-23 18:50 ` egallager at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2021-03-23 15:01 UTC (permalink / raw)
  To: gcc-bugs

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.)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-23 18:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-23 15:01 [Bug c++/99729] New: Tweak -Wdeprecated-declarations with namespaces mpolacek at gcc dot gnu.org
2021-03-23 15:01 ` [Bug c++/99729] " mpolacek at gcc dot gnu.org
2021-03-23 18:50 ` egallager at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).