c++/3638: Template class instanciated using wrong type

gdr@gcc.gnu.org gdr@gcc.gnu.org
Sun Aug 12 07:05:00 GMT 2001


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



More information about the Gcc-prs mailing list