From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8574 invoked by alias); 17 Jun 2002 10:56:07 -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 8515 invoked by uid 71); 17 Jun 2002 10:56:03 -0000 Resent-Date: 17 Jun 2002 10:56:03 -0000 Resent-Message-ID: <20020617105603.8514.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, nicolas.tisserand@lrde.epita.fr Received: (qmail 6483 invoked from network); 17 Jun 2002 10:50:54 -0000 Received: from unknown (HELO hermes.epita.fr) (163.5.255.10) by sources.redhat.com with SMTP; 17 Jun 2002 10:50:54 -0000 Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2]) by hermes.epita.fr id g5HAoqD22440 Mon, 17 Jun 2002 12:50:52 +0200 (MEST) Received: from ouarzazate.lrde.epita.fr ([10.223.13.42]) by goa.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 17Ju6G-0002pV-00; Mon, 17 Jun 2002 12:51:08 +0200 Received: from tisser_n by ouarzazate.lrde.epita.fr with local (Exim 3.35 #1 (Debian)) id 17Ju6G-0000eG-00; Mon, 17 Jun 2002 12:51:08 +0200 Message-Id: Date: Mon, 17 Jun 2002 04:06:00 -0000 From: nicolas.tisserand@lrde.epita.fr To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org X-Send-Pr-Version: 3.113 Subject: c++/7052: ICE when declaring a function already defined as a friend method of a template class X-SW-Source: 2002-06/txt/msg00386.txt.bz2 List-Id: >Number: 7052 >Category: c++ >Synopsis: ICE when declaring a function already defined as a friend method of a template class >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Mon Jun 17 03:56:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: >Release: 3.1.1 20020606 (Debian prerelease) (Debian testing/unstable) >Organization: LRDE >Environment: System: Linux ouarzazate 2.4.17 #1 Sun Mar 10 19:25:30 CET 2002 i686 unknown Architecture: i686 host: i386-pc-linux-gnu build: i386-pc-linux-gnu target: i386-pc-linux-gnu configured with: /mnt/data/gcc-3.1/gcc-3.1-3.1.1ds1/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/g++-v3-3.1 --enable-shared --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --enable-clocale=gnu --enable-threads=posix --enable-java-gc=boehm --enable-objc-gc i386-linux >Description: gcc does not tolerate a redeclaration of a friend method, oustside of its original class, when the parameter is template dependent. >How-To-Repeat: template struct A { friend void bar(A a) {} }; void bar(A); int main() { A a; bar(a); } >Fix: >Release-Note: >Audit-Trail: >Unformatted: