public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Steven Bosscher <s.bosscher@student.tudelft.nl> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c++/10694: [3.3/3.4 regression] Befriending a function in a class that is only forward-declared Date: Sun, 11 May 2003 11:16:00 -0000 [thread overview] Message-ID: <20030511111600.30188.qmail@sources.redhat.com> (raw) The following reply was made to PR c++/10694; it has been noted by GNATS. From: Steven Bosscher <s.bosscher@student.tudelft.nl> To: bangerth@dealii.org, gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org Cc: Subject: Re: c++/10694: [3.3/3.4 regression] Befriending a function in a class that is only forward-declared Date: Sun, 11 May 2003 13:10:09 +0200 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10694 : Search converges between 2003-03-10-trunk (#149) and 2003-03-11-trunk (#150). Line-numbered input is: ======================================== 1 template <class T> struct Y; 2 3 template <class S> class X { 4 template <class T> friend void Y<T>::member(); 5 }; 6 7 template <class T> struct Y { 8 void member() { 9 X<int>(); 10 } 11 }; 12 13 template class Y<int>; 14 ======================================== Diagnostic output follows, from the last compiler tested: input: In instantiation of `X<int>': input:9: instantiated from `void Y<T>::member() [with T = int]' input:13: instantiated from here input:4: error: prototype for `template<class T> void Y::member()' does not match any in class `Y<T>' input:8: error: candidate is: void Y<T>::member() Compiler output follows, from the last compiler tested: .file "input" .ident "GCC: (GNU) 3.4 20030311 (experimental)"
next reply other threads:[~2003-05-11 11:16 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2003-05-11 11:16 Steven Bosscher [this message] -- strict thread matches above, loose matches on Subject: below -- 2003-05-11 10:33 lerdsuwa 2003-05-09 1:16 bangerth
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=20030511111600.30188.qmail@sources.redhat.com \ --to=s.bosscher@student.tudelft.nl \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@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).