This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]