This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: template bug (all versions)
- To: Carlo Wood <carlo at alinoe dot com>
- Subject: Re: template bug (all versions)
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 05 Mar 2000 00:51:39 -0300
- Cc: gcc-bugs at gcc dot gnu dot org
- References: <20000305024956.A22351@a2000.nl>
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