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++/3028: 3.0 Compiler complains about template that used to work under 2.95


The following reply was made to PR c++/3028; it has been noted by GNATS.

From: Gabriel Dos Reis <Gabriel.Dos-Reis@cmla.ens-cachan.fr>
To: "Artem Khodush" <artem@duma.gov.ru>
Cc: <peterson@austin.ibm.com>, <gcc-gnats@gcc.gnu.org>, <gcc-bugs@gcc.gnu.org>
Subject: Re: c++/3028: 3.0 Compiler complains about template that used to work under 2.95
Date: 02 Jun 2001 03:14:32 +0200

 | > template<class ALLOC> class IListBase 
 | > {
 | >  protected:
 | >   struct IListNode 
 | >   {
 | >     IListNode *next;
 | >     int datum;
 | >   };
 | >   
 | >   class IListNode *head;
 | >   class IListNode *tail;
 | >   
 | >   int find(int datum);
 | > };
 | > 
 | > template<class ALLOC> int IListBase<ALLOC>::find(int d)
 | > {
 | >   IListNode<ALLOC> *node;
       ^^^^^^^^^
 
 There is no template-name 'IListNode' defined at this point.  Lookup
 finds only a NON-template-name (member) name.
 
 -- Gaby


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