Template member - parse error
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Sun Mar 5 02:42:00 GMT 2000
> struct A {
> template<class T1> void f() {}
> };
>
> template<class T2> struct B{
> void g(){ A a; a.f<int>(); }
> };
> -----------------------------------------------
> causes "parse error" while it should not.
> EDG-based compiler does not complain.
Thanks for your bug report. This is a known bug; the work-around is to
write
a.template f<int>();
Regards,
Martin
More information about the Gcc-bugs
mailing list