Internal compiler error. (using Templates)
Matthew Z. Davis
davis@its.caltech.edu
Tue Nov 30 06:01:00 GMT 1999
I came accross an internal compiler error when trying to inherit from a
templated class improperly.
the two classes were set and Btree (we're re-implementing set from the
STL for an assignment using B-trees.)
in Btree.hh:
template<class T, class C,int N>
class Btree{
........
}
in set.hh:
template<class T, class C, int N>
class set: public Btree<N>{ // <-- Note improper template
declaration.
...
}
eg++ version number is 2.90.23
-Matt Davis
More information about the Gcc-bugs
mailing list