This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: ICE 40, using function templates, egcs-2.92.04 19980906
- To: Peter Nordlund <petern at nada dot kth dot se>
- Subject: Re: ICE 40, using function templates, egcs-2.92.04 19980906
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 12 Sep 1998 12:09:47 +-300
- Cc: egcs-bugs at cygnus dot com
- References: <35F8DBF5.60F061B8@nada.kth.se>
Peter Nordlund <petern@nada.kth.se> writes:
> I get an internal compiler error with the code below.
> cerr << (test::fcn<f>(4));
If you spell it `test::template fcn<f>(4)', egcs will compile it, but
it should not require the `template' keyword in this case.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil