This is the mail archive of the gcc-bugs@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



| > 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]