public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7745: gcc 3.2 rejects legal member template overload
@ 2002-10-03  8:08 lerdsuwa
  0 siblings, 0 replies; 5+ messages in thread
From: lerdsuwa @ 2002-10-03  8:08 UTC (permalink / raw)
  To: acm, gcc-bugs, gcc-prs, nobody

Synopsis: gcc 3.2 rejects legal member template overload

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Thu Oct  3 08:08:46 2002
State-Changed-Why:
    Confirmed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7745


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: c++/7745: gcc 3.2 rejects legal member template overload
@ 2002-11-01  6:54 lerdsuwa
  0 siblings, 0 replies; 5+ messages in thread
From: lerdsuwa @ 2002-11-01  6:54 UTC (permalink / raw)
  To: acm, gcc-bugs, gcc-prs, nobody

Synopsis: gcc 3.2 rejects legal member template overload

State-Changed-From-To: analyzed->closed
State-Changed-By: lerdsuwa
State-Changed-When: Fri Nov  1 06:54:36 2002
State-Changed-Why:
    Fixed in GCC 3.2 branch and main trunk.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7745


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: c++/7745: gcc 3.2 rejects legal member template overload
@ 2002-09-21  4:50 lerdsuwa
  0 siblings, 0 replies; 5+ messages in thread
From: lerdsuwa @ 2002-09-21  4:50 UTC (permalink / raw)
  To: acm, gcc-bugs, gcc-prs, nobody

Synopsis: gcc 3.2 rejects legal member template overload

State-Changed-From-To: feedback->open
State-Changed-By: lerdsuwa
State-Changed-When: Sat Sep 21 04:50:02 2002
State-Changed-Why:
    Test case received.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7745


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: c++/7745: gcc 3.2 rejects legal member template overload
@ 2002-09-13  9:35 lerdsuwa
  0 siblings, 0 replies; 5+ messages in thread
From: lerdsuwa @ 2002-09-13  9:35 UTC (permalink / raw)
  To: acm, gcc-bugs, gcc-prs, nobody

Synopsis: gcc 3.2 rejects legal member template overload

State-Changed-From-To: open->feedback
State-Changed-By: lerdsuwa
State-Changed-When: Fri Sep 13 09:35:18 2002
State-Changed-Why:
    The testcase is missing from the bug report.  Please mail me the testcase so that I can add to this bug report.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7745


^ permalink raw reply	[flat|nested] 5+ messages in thread

* c++/7745: gcc 3.2 rejects legal member template overload
@ 2002-08-28  7:56 acm
  0 siblings, 0 replies; 5+ messages in thread
From: acm @ 2002-08-28  7:56 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7745
>Category:       c++
>Synopsis:       gcc 3.2 rejects legal member template overload
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 28 07:06:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Morrow
>Release:        gcc version 3.2
>Organization:
>Environment:
System: SunOS <sanitized> 5.8 Generic_108528-13 sun4u sparc SUNW,UltraAX-i2
Architecture: sun4
host: sparc-sun-solaris2.8
>Description:
In attached code, the second overload of the member template create in class Factory is rejected in gcc 3.2. This construction was accepted in 3.1 (as well as Forte 6U2 and the comeau online front end) and appears to be legal. Output data:

g++ -v -save-temps member_template_failure.cpp 
Reading specs from /usr/local/software/gcc-3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/specs
Configured with: ../../gcc-3.2/configure --prefix=/usr/local/software/gcc-3.2 --enable-languages=c,c++ --disable-nls --enable-shared --enable-threads
Thread model: posix
gcc version 3.2
 /usr/local/software/gcc-3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/cpp0 -lang-c++ -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=0 -D__GXX_ABI_VERSION=102 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__PRAGMA_REDEFINE_EXTNAME -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__PRAGMA_REDEFINE_EXTNAME -D__sparc -D__sun -D__unix -Asystem=unix -Asystem=svr4 -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_XOPEN_SOURCE=500 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D__EXTENSIONS__ -D__SIZE_TYPE__=unsigned int -D__PTRDIFF_TYPE__=int -D__WCHAR_TYPE__=long int -D__WINT_TYPE__=long int -D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc member_template_failure.cpp member_template_failure.ii
GNU CPP version 3.2 (cpplib) (sparc ELF)
ignoring nonexistent directory "/usr/local/software/gcc-3.2/sparc-sun-solaris2.8/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/software/gcc-3.2/include/c++/3.2
 /usr/local/software/gcc-3.2/include/c++/3.2/sparc-sun-solaris2.8
 /usr/local/software/gcc-3.2/include/c++/3.2/backward
 /usr/local/include
 /usr/local/software/gcc-3.2/include
 /usr/local/software/gcc-3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/include
 /usr/include
End of search list.
 /usr/local/software/gcc-3.2/lib/gcc-lib/sparc-sun-solaris2.8/3.2/cc1plus -fpreprocessed member_template_failure.ii -quiet -dumpbase member_template_failure.cpp -version -o member_template_failure.s
GNU CPP version 3.2 (cpplib) (sparc ELF)
GNU C++ version 3.2 (sparc-sun-solaris2.8)
        compiled by GNU C version 3.2.
member_template_failure.cpp:20: `template<class _Type_, class _Interface_> 
   _Interface_* Factory::create() const' and `template<class _Type_> Interface* 
   Factory::create() const' cannot be overloaded
member_template_failure.cpp:32: prototype for `_Interface_* Factory::create() 
   const' does not match any in class `Factory'
member_template_failure.cpp:17: candidate is: template<class _Type_> Interface* 
   Factory::create() const
member_template_failure.cpp:32: template definition of non-template `
   _Interface_* Factory::create() const'
member_template_failure.cpp: In function `int main(int, char**)':
member_template_failure.cpp:42: no matching function for call to `Factory::
   create()'

>How-To-Repeat:
Compile attached file member_template_failure.cpp. This file does not include any headers, and so is submitted as source, not preprocessed output.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-11-01 14:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-03  8:08 c++/7745: gcc 3.2 rejects legal member template overload lerdsuwa
  -- strict thread matches above, loose matches on Subject: below --
2002-11-01  6:54 lerdsuwa
2002-09-21  4:50 lerdsuwa
2002-09-13  9:35 lerdsuwa
2002-08-28  7:56 acm

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).