This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

unrecognized tree code



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]