public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: nespub@free.fr To: gcc-gnats@gcc.gnu.org, debian-gcc@lists.debian.org Cc: nespub@free.fr Subject: c++/7676: Member template function overloading problem Date: Wed, 21 Aug 2002 06:46:00 -0000 [thread overview] Message-ID: <20020821103343.103973287E@ouagadougou.lrde.epita.fr> (raw) >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<class T> void bar(); template<int I> void bar(); }; $ g++-3.2 template_overloading.cc template_overloading.cc:7: `template<int I> void foo::bar()' and ` template<class T> void foo::bar()' cannot be overloaded >Fix: Use namespace instead of struct, but not always possible. >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-08-21 10:46 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-08-21 6:46 nespub [this message] 2002-09-13 15:13 nathan 2002-10-16 13:02 nathan 2002-10-18 1:18 nathan
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=20020821103343.103973287E@ouagadougou.lrde.epita.fr \ --to=nespub@free.fr \ --cc=debian-gcc@lists.debian.org \ --cc=gcc-gnats@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).