public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "geoffk at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/31775] static object mangling conflicts with extern object Date: Tue, 01 May 2007 23:54:00 -0000 [thread overview] Message-ID: <20070501235412.17239.qmail@sourceware.org> (raw) In-Reply-To: <bug-31775-638@http.gcc.gnu.org/bugzilla/> ------- Comment #3 from geoffk at gcc dot gnu dot org 2007-05-02 00:54 ------- You would add a translation unit that says int i; or similar. It's not "main::i", it's "::i", because of [basic.link] paragraph 7: When a block scope declaration of an entity with linkage is not found to refer to some other declaration, then that entity is a member of the innermost enclosing namespace. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31775
next prev parent reply other threads:[~2007-05-01 23:54 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-05-01 18:53 [Bug c++/31775] New: " geoffk at gcc dot gnu dot org 2007-05-01 18:56 ` [Bug c++/31775] " geoffk at gcc dot gnu dot org 2007-05-01 19:44 ` rguenth at gcc dot gnu dot org 2007-05-01 23:54 ` geoffk at gcc dot gnu dot org [this message] 2007-05-02 0:46 ` geoffk at gcc dot gnu dot org 2007-05-06 0:02 ` geoffk at gcc dot gnu dot org 2007-05-06 0:27 ` geoffk at gcc dot gnu dot org 2008-02-29 13:57 ` mueller at gcc dot gnu dot org 2008-03-01 4:06 ` geoffk at geoffk dot org 2008-03-01 4:19 ` Andrew Pinski 2008-03-01 4:20 ` pinskia at gmail dot com 2010-01-07 7:04 ` pinskia at gcc dot gnu dot org [not found] <bug-31775-4@http.gcc.gnu.org/bugzilla/> 2020-10-06 11:41 ` nathan at gcc dot gnu.org 2020-10-07 14:35 ` nathan at gcc dot gnu.org
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=20070501235412.17239.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).