This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3028: 3.0 Compiler complains about template that used to work under 2.95
- To: nobody at gcc dot gnu dot org
- Subject: Re: c++/3028: 3.0 Compiler complains about template that used to work under 2.95
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
- Date: 2 Jun 2001 01:26:02 -0000
- Cc: gcc-prs at gcc dot gnu dot org,
- Reply-To: Gabriel Dos Reis <Gabriel dot Dos-Reis at cmla dot ens-cachan dot fr>
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