From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30217 invoked by alias); 11 May 2003 11:16:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 30189 invoked by uid 71); 11 May 2003 11:16:00 -0000 Date: Sun, 11 May 2003 11:16:00 -0000 Message-ID: <20030511111600.30188.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Steven Bosscher Subject: Re: c++/10694: [3.3/3.4 regression] Befriending a function in a class that is only forward-declared Reply-To: Steven Bosscher X-SW-Source: 2003-05/txt/msg01073.txt.bz2 List-Id: The following reply was made to PR c++/10694; it has been noted by GNATS. From: Steven Bosscher 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 struct Y; 2 3 template class X { 4 template friend void Y::member(); 5 }; 6 7 template struct Y { 8 void member() { 9 X(); 10 } 11 }; 12 13 template class Y; 14 ======================================== Diagnostic output follows, from the last compiler tested: input: In instantiation of `X': input:9: instantiated from `void Y::member() [with T = int]' input:13: instantiated from here input:4: error: prototype for `template void Y::member()' does not match any in class `Y' input:8: error: candidate is: void Y::member() Compiler output follows, from the last compiler tested: .file "input" .ident "GCC: (GNU) 3.4 20030311 (experimental)"