template bug (all versions)

Alexandre Oliva oliva@lsd.ic.unicamp.br
Sat Mar 4 20:35:00 GMT 2000


On Mar  4, 2000, Carlo Wood <carlo@alinoe.com> wrote:

>     x.f<0>();		// This is line 12

> It seems as if gcc doesn't understand the '<' in the line "x.f<0>();".

Yup.  A work-around that sometimes works is to add `template' between
`.' and `f', even though `x' is not template-dependent in this case
and this would make the code ill-formed according to the standard :-(

-- 
Alexandre Oliva     http://www.ic.unicamp.br/~oliva/     Enjoy Guaraná
Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me



More information about the Gcc-bugs mailing list