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]

Re: gcc Compiler bug


> 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


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