template member function not compiled

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Mon Jan 3 15:50:00 GMT 2000


> the following example will not compile with gcc version 2.95.2,
> under linux and solaris 2.6. 
> As far as I know, it should be supported by c++. It compiles under KCC.

Thanks for your bug report. This is a known problem; you can work
around by explicitly specifying the method as a template:

  return t.template is<0>(s);

Regards,
Martin


More information about the Gcc-bugs mailing list