From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gabriel Dos Reis To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org Subject: Re: c++/3028: 3.0 Compiler complains about template that used to work under 2.95 Date: Fri, 01 Jun 2001 18:26:00 -0000 Message-id: <20010602012602.26854.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00034.html List-Id: The following reply was made to PR c++/3028; it has been noted by GNATS. From: Gabriel Dos Reis To: "Artem Khodush" Cc: , , 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 IListBase | > { | > protected: | > struct IListNode | > { | > IListNode *next; | > int datum; | > }; | > | > class IListNode *head; | > class IListNode *tail; | > | > int find(int datum); | > }; | > | > template int IListBase::find(int d) | > { | > IListNode *node; ^^^^^^^^^ There is no template-name 'IListNode' defined at this point. Lookup finds only a NON-template-name (member) name. -- Gaby