[Fwd: g++: Internal compiler error: program cc1plus got fatal signal 11]
Alex Vinokur
alexander.vinokur@telrad.co.il
Thu Jun 17 01:14:00 GMT 1999
"Martin v. Loewis" wrote:
> > Here is a bug report.
>
> Thanks for your bug report. gcc-2.95 19990614 doesn't crash anymore,
> but says
>
> a.cc:6: template-id `AAA<S1>' in declaration of primary template
> a.cc: In function `void AAA<int>()':
> a.cc:24: instantiated from here
> a.cc:9: `BBB<int>::BBB()' is private
> a.cc:18: within this context
>
> If you fix this bug (i.e if you write)
>
> friend void AAA<T1> ();
Will a different behavior of egcs be for
template friend class
and
template friend function?
Please see two attachment files.
>
> the code compiles fine.
>
> Regards,
> Martin
Thank you very much,
Alex
More information about the Gcc-bugs
mailing list