This is the mail archive of the
gcc-bugs@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: "Artem Khodush" <artem at duma dot gov dot ru>
- 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: 02 Jun 2001 03:14:32 +0200
- Cc: <peterson at austin dot ibm dot com>, <gcc-gnats at gcc dot gnu dot org>, <gcc-bugs at gcc dot gnu dot org>
- Organization: CMLA, ENS Cachan -- CNRS UMR 8536 (France)
- References: <20010601141933.13459.qmail@sourceware.cygnus.com> <000901c0eaab$49e7a940$545a9090@duma.gov.ru>
| > 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