public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tobi at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/33858] Spurious warning with anonymous namespace and anonymous types Date: Fri, 08 May 2009 18:54:00 -0000 [thread overview] Message-ID: <20090508185350.13125.qmail@sourceware.org> (raw) In-Reply-To: <bug-33858-4019@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from tobi at gcc dot gnu dot org 2009-05-08 18:53 ------- Note that the C-like equivalent doesn't warn (at least with g++ 4.1.2): $ cat user/t.cc namespace { struct { } t; } static struct { } s; $ g++ -c user/t.cc user/t.cc:3: warning: non-local variable '<unnamed>::<anonymous struct> <unnamed>::t' uses anonymous type $ -- tobi at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tobi at gcc dot gnu dot org Last reconfirmed|2007-12-02 22:24:33 |2009-05-08 18:53:49 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33858
prev parent reply other threads:[~2009-05-08 18:54 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-10-22 13:17 [Bug c++/33858] New: Spurious warning with anonymous namespace jm at bourguet dot org 2007-10-30 18:23 ` [Bug c++/33858] " ralgith at gmail dot com 2007-12-02 22:24 ` [Bug c++/33858] Spurious warning with anonymous namespace and anonymous types pinskia at gcc dot gnu dot org 2009-05-08 18:54 ` tobi at gcc dot gnu dot org [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090508185350.13125.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).