This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: ICE 40, using function templates, egcs-2.92.04 19980906


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]