bug report

Martin v. Loewis martin@mira.isdn.cs.tu-berlin.de
Tue Aug 31 22:45:00 GMT 1999


> class gar
> {
>   template<class C, class D>
>   friend void foo<C,D> () {}
> };

Thanks for your bug report. gcc-2.95 says

a.cc:4: defining explicit specialization `foo<C, D>' in friend declaration
a.cc:4: template-id `foo<C, D>' for `foo()' does not match any template declaration

so it appears the bug has been fixed.


> class gar
> {
>   template<class C, class D>
>   friend void foo () {}
> };

gcc 2.95 accepts this without complaints.

Regards,
Martin



More information about the Gcc-bugs mailing list