From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10070 invoked by alias); 21 Aug 2002 10:46:06 -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 10042 invoked by uid 71); 21 Aug 2002 10:46:04 -0000 Resent-Date: 21 Aug 2002 10:46:04 -0000 Resent-Message-ID: <20020821104604.10041.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, nespub@free.fr Received: (qmail 9787 invoked from network); 21 Aug 2002 10:43:19 -0000 Received: from unknown (HELO colt.epita.fr) (62.23.180.27) by sources.redhat.com with SMTP; 21 Aug 2002 10:43:19 -0000 Received: from hermes.epita.fr (hermes.epita.fr [163.5.255.10]) by colt.epita.fr id g7LAlME27831 Wed, 21 Aug 2002 12:47:37 +0200 (MEST) Received: from goa.lrde.epita.fr (mail@goa.lrde.epita.fr [10.223.13.2]) by hermes.epita.fr id g7LAYlS20260 Wed, 21 Aug 2002 12:34:47 +0200 (MEST) Received: from ouagadougou.lrde.epita.fr ([10.223.13.41]) by goa.lrde.epita.fr with esmtp (Exim 3.35 #1 (Debian)) id 17hSpI-0008BX-00; Wed, 21 Aug 2002 12:35:00 +0200 Received: by ouagadougou.lrde.epita.fr (Postfix, from userid 17026) id 103973287E; Wed, 21 Aug 2002 12:33:43 +0200 (CEST) Message-Id: <20020821103343.103973287E@ouagadougou.lrde.epita.fr> Date: Wed, 21 Aug 2002 06:46:00 -0000 From: nespub@free.fr To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org Cc: nespub@free.fr X-Send-Pr-Version: 3.113 Subject: c++/7676: Member template function overloading problem X-SW-Source: 2002-08/txt/msg00440.txt.bz2 List-Id: >Number: 7676 >Category: c++ >Synopsis: Member template function overloading problem >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Wed Aug 21 03:46:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: >Release: 3.2 20020809 (Debian prerelease) (Debian testing/unstable) >Organization: EPITA-LRDE >Environment: System: Linux ouagadougou 2.4.17 #1 Thu May 30 08:30:13 CEST 2002 i586 unknown unknown GNU/Linux Architecture: i586 host: i386-pc-linux-gnu build: i386-pc-linux-gnu target: i386-pc-linux-gnu configured with: /mnt/data/gcc-3.1/gcc-3.2-3.2ds0/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/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-java-gc=boehm --enable-objc-gc i386-linux >Description: Member template functions overloading fails when overloading is based on the template parameter list. It fails with g++-3.1 older than pre-2 version, and g++-3.2. It works outside any class. Referring to sections (14.5.5.1-4) and (14.5.2-8) it seems to be a bug. g++ < 3.1 accepts it, como and icc too. >How-To-Repeat: struct foo { template void bar(); template void bar(); }; $ g++-3.2 template_overloading.cc template_overloading.cc:7: `template void foo::bar()' and ` template void foo::bar()' cannot be overloaded >Fix: Use namespace instead of struct, but not always possible. >Release-Note: >Audit-Trail: >Unformatted: