This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3638: Template class instanciated using wrong type
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gdr at gcc dot gnu dot org, nobody at gcc dot gnu dot org, philippeb at videotron dot ca
- Subject: Re: c++/3638: Template class instanciated using wrong type
- From: gdr at gcc dot gnu dot org
- Date: 12 Aug 2001 14:05:07 -0000
Synopsis: Template class instanciated using wrong type
Responsible-Changed-From-To: unassigned->gdr
Responsible-Changed-By: gdr
Responsible-Changed-When: Sun Aug 12 07:05:07 2001
Responsible-Changed-Why:
See below.
State-Changed-From-To: open->analyzed
State-Changed-By: gdr
State-Changed-When: Sun Aug 12 07:05:07 2001
State-Changed-Why:
Confirmed as a bug. GCC-3.1 is even worse: It compile the program
to print the following:
void foo() [with _T = int]
c1<_T>::c1() [with _T = int]
c1<_T>::c1() [with _T = int]
c1<_T>::c1() [with _T = long int]
c1<_T>::c1() [with _T = long int]
Which means GCC currently is being creating an object of the
wrong type somewhere.
-- Gaby
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3638&database=gcc