problem with this->

Alexandre Oliva oliva@dcc.unicamp.br
Thu Dec 3 04:24:00 GMT 1998


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




More information about the Gcc-bugs mailing list