This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: problem with explicit template function specification
- To: dv at vollmann dot ch
- Subject: Re: problem with explicit template function specification
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Sat, 29 Apr 2000 07:37:23 +0200
- CC: gcc-bugs at gcc dot gnu dot org
- References: <390A48E7.746CA435@vollmann.ch>
> 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