This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: template member function not compiled


> 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]