public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "gdr at integrable-solutions dot net" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/13935] [3.4/3.5 Regression] Template friend lookup bug Date: Fri, 30 Jan 2004 17:45:00 -0000 [thread overview] Message-ID: <20040130174542.24503.qmail@sources.redhat.com> (raw) In-Reply-To: <20040130165003.13935.giovannibajo@libero.it> ------- Additional Comments From gdr at integrable-solutions dot net 2004-01-30 17:45 ------- Subject: Re: [3.4/3.5 Regression] Template friend lookup bug "bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes: | It fails with the same error on 3.3.3-pre. | | However, I'm not sure whether this is not illegal: you first say | friend class B; | but then you declare B as a template: | template <typename TP2> class B | What confuses me is that this is not detected. You're right in thinking that the program is invalid. Indeed it is. A template-name ought to designate a unique entity in a given declarative region, e.g. there is no "struct hack" for template names. Same for namespace names. And that is Good! -- Gaby -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13935
next prev parent reply other threads:[~2004-01-30 17:45 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-01-30 16:50 [Bug c++/13935] New: " giovannibajo at libero dot it 2004-01-30 16:50 ` [Bug c++/13935] " giovannibajo at libero dot it 2004-01-30 17:10 ` bangerth at dealii dot org 2004-01-30 17:45 ` gdr at integrable-solutions dot net [this message] 2004-01-30 17:58 ` giovannibajo at libero dot it 2004-01-30 19:23 ` gdr at integrable-solutions dot net 2004-02-02 2:16 ` giovannibajo at libero dot it 2004-02-02 2:27 ` gdr at integrable-solutions dot net 2004-02-02 2:35 ` giovannibajo at libero dot it 2004-02-03 9:22 ` mmitchel at gcc dot gnu dot 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=20040130174542.24503.qmail@sources.redhat.com \ --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).