This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bug report...
- To: ajc at inescn dot pt
- Subject: Re: bug report...
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 05 Jun 1998 13:19:15 -0300
- Cc: egcs at cygnus dot com
- References: <3577D54A.35C7@inescn.pt>
Artur Jorge Azevedo Carvalho <ajc@inescn.pt> writes:
> generates the following egcs-1.0.2 error:
> In function `void sort(T *, int)':
> In file included from teste.cc:1:
> Internal compiler error.
This is fixed in the latest development snapshot of egcs, but not in
egcs 1.0.3a
> the error seems to be in having a struct defined inside a function
> template
Yup, AFAI recall, the problem has to do with generating templates of
local classes in function templates. Bear in mind, however, that
using local classes as template arguments is *not* ANSI/ISO C++
([temp.arg.type]/2 explicitly forbits this), it is an extension
provided by gcc and egcs.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil