gcc Compiler bug
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Fri Dec 31 04:15:00 GMT 1999
> gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
[...]
> a.cc:15: Internal compiler error.
Thanks for your bug report. gcc-2.95.2 says (after adding a return
type for MeasBase)
a.cc: In instantiation of `MB<MDirection>':
a.cc:10: instantiated from here
a.cc:6: invalid use of undefined type `class MDirection'
a.cc:9: forward declaration of `class MDirection'
a.cc:6: invalid use of undefined type `class MDirection'
a.cc:9: forward declaration of `class MDirection'
which is correct, since MDirection is not complete at the point where
it is used.
Regards,
Martin
More information about the Gcc-bugs
mailing list