This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
unrecognized tree code
- To: gcc-bugs at gcc dot gnu dot org
- Subject: unrecognized tree code
- From: Brian Young <brian at freedomintelligence dot com>
- Date: Thu, 23 Sep 1999 00:04:51 +0000
When I compile this:
---
template <class TYPE, int SIZE = sizeof( TYPE )>
class A
{
};
template <class OTHERTYPE>
class B : public A<OTHERTYPE>
{
};
---
on GCC 2.95.1 I get:
---
sorry, not implemented: initializer contains unrecognized tree code
---
It compiles fine with egcs 1.1.2.
Is this a typename thing? I must confess I don't know anything about
typename. The problem seems to stem from that default template
parameter. If it is a typename thing, where and why would the typename
go?
Pawing through the archives of this list I found something from August
that smelled similar:
http://egcs.cygnus.com/ml/gcc-bugs/1999-08/msg00267.html
But applying that patch didn't solve my problem.
Brian.
--
brian@freedomintelligence.com