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: problem with explicit template function specification


> In the program below, calling the template function A::f<>()
> from the member function in a template class fails,
> while calling it from an ordinary member function succeeds.

Thanks for your bug report. This is not a bug in the compiler, but in your
code. You have to write

               int i = a.template f<int>();

Regards,
Martin

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