unrecognized tree code

Brian Young brian@freedomintelligence.com
Wed Sep 22 16:52:00 GMT 1999


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


More information about the Gcc-bugs mailing list