public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7676: Member template function overloading problem
@ 2002-09-13 15:13 nathan
0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2002-09-13 15:13 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nespub, nobody
Synopsis: Member template function overloading problem
State-Changed-From-To: open->analyzed
State-Changed-By: nathan
State-Changed-When: Fri Sep 13 15:13:48 2002
State-Changed-Why:
confirmed as a regression
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7676
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/7676: Member template function overloading problem
@ 2002-10-18 1:18 nathan
0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2002-10-18 1:18 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nathan, nespub
Synopsis: Member template function overloading problem
State-Changed-From-To: analyzed->closed
State-Changed-By: nathan
State-Changed-When: Fri Oct 18 01:18:27 2002
State-Changed-Why:
2002-10-17 Nathan Sidwell <nathan@codesourcery.com>
* class.c (add_method): Compare template parms too.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7676
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: c++/7676: Member template function overloading problem
@ 2002-10-16 13:02 nathan
0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2002-10-16 13:02 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nathan, nespub, nobody
Synopsis: Member template function overloading problem
Responsible-Changed-From-To: unassigned->nathan
Responsible-Changed-By: nathan
Responsible-Changed-When: Wed Oct 16 13:02:15 2002
Responsible-Changed-Why:
working on a fix
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7676
^ permalink raw reply [flat|nested] 4+ messages in thread
* c++/7676: Member template function overloading problem
@ 2002-08-21 6:46 nespub
0 siblings, 0 replies; 4+ messages in thread
From: nespub @ 2002-08-21 6:46 UTC (permalink / raw)
To: gcc-gnats, debian-gcc; +Cc: nespub
>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:
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-10-18 8:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-13 15:13 c++/7676: Member template function overloading problem nathan
-- strict thread matches above, loose matches on Subject: below --
2002-10-18 1:18 nathan
2002-10-16 13:02 nathan
2002-08-21 6:46 nespub
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).