This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: problem with this->
- To: Milos Grundman <grundman at mip dot ups-tlse dot fr>
- Subject: Re: problem with this->
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 03 Dec 1998 10:21:29 -0200
- Cc: egcs-bugs at cygnus dot com
- References: <36656297.169E7BC1@mip.ups-tlse.fr>
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. :-(
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil