template bug ?

Alexandre Oliva oliva@dcc.unicamp.br
Thu Dec 3 07:50:00 GMT 1998


On Dec  2, 1998, Milos Grundman <grundman@mip.ups-tlse.fr> wrote:

> return x.f<1>(); // maybe it is incorrect

Your code is correct, but egcs 1.1* require you to prefix `f' with the 
`template' keyword.  This should not be needed, and this problem is
already fixed in the latest development snapshots of egcs.
Unfortunately, another bug was introduced that causes it to reject
explicit specializations of templates within class bodies.

Mark or Jason, do you feel like accepting such specializations again?
They're definitely valid...

-- 
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