Internal compiler error
Mark Crosland
mjc@c1000907-b.sttls1.wa.home.com
Sat Oct 23 10:45:00 GMT 1999
I have seen several examples of deriving a class from a base class
that is a template class, and passing the derived class as the
template argument of the base class (Coplien, Barton/Nackman).
class B : public A <B> {
.
.
.
};
Of course the examples are 5+ years old. Are those examples no longer
valid? Or am I missing something :)
Thanks,
Mark
On Sat, 23 Oct 1999, Martin v. Loewis wrote:
> > egcs-1.1.2
> [...]
> > test.cpp:17: Internal compiler error.
>
> Thanks for your bug report. gcc-2.95.1 reports
>
> a.cc: In instantiation of `B<A>':
> a.cc:16: instantiated from here
> a.cc:12: invalid use of undefined type `class A'
> a.cc:16: forward declaration of `class A'
>
> so the bug has been fixed.
>
> Regards,
> Martin
>
More information about the Gcc-bugs
mailing list