This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc Compiler bug
- To: Wim dot Brouw at atnf dot csiro dot au
- Subject: Re: gcc Compiler bug
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Fri, 31 Dec 1999 13:10:00 +0100
- CC: gcc-bugs at gcc dot gnu dot org, wbrouw at atnf dot csiro dot au
- References: <383B65D3.5133623E@atnf.csiro.au>
> 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