egcs 1.0.1 bug
Gabriel Dos Reis
Gabriel.Dos-Reis@dptmaths.ens-cachan.fr
Fri Jan 9 04:35:00 GMT 1998
>>>>> ëAlexandreû, Alexandre Oliva <oliva@dcc.unicamp.br> wrote:
Alexandre> Adam P Jenkins writes:
>> it seems to crash when using explicit template
>> arguments in a friend function declaration in a template class.
Alexandre> That's because the template function must be declared before you refer
Alexandre> to an specialization thereof. According to Mark Mitchell, this should
Alexandre> be fixed with an appropriate error message in the next snapshot of
Alexandre> egcs, so expect this to be fixed in the next release. The following
Alexandre> declarations, before the template class body, would fix the problem:
Alexandre> template <class T> class A;
Alexandre> template <class T> A<T> foo(A<T>);
This kind of question has become common. Isn't it a good
candidate to be included in the FAQ ?
-- Gaby
More information about the Gcc-bugs
mailing list