This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: problem with this->
- To: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Subject: Re: problem with this->
- From: Gabriel Dos Reis <Gabriel dot Dos-Reis at dptmaths dot ens-cachan dot fr>
- Date: 03 Dec 1998 17:57:44 +0100
- Cc: Milos Grundman <grundman at mip dot ups-tlse dot fr>, egcs-bugs at cygnus dot com
- References: <36656297.169E7BC1@mip.ups-tlse.fr> <or1zmho1py.fsf@araguaia.dcc.unicamp.br>
>>>>> Alexandre Oliva <oliva@dcc.unicamp.br> wrote:
> On Dec 2, 1998, Milos Grundman <grundman@mip.ups-tlse.fr> wrote:
>> // it works without "this->"
>> template <int j> int f() const { return this->f<j-1>(); };
> Same problem here, you need to prefix `f' with `template' for it to be
> correctly parsed by egcs 1.1. :-(
Isn't that the required syntax? (I don't have my copy of the standard
right here)