This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: typename bug ?
- To: oliva at dcc dot unicamp dot br (Alexandre Oliva), egcs at cygnus dot com
- Subject: Re: typename bug ?
- From: Jason Merrill <jason at cygnus dot com>
- Date: 01 Dec 1998 10:21:46 -0800
- References: <365E81A7.A2E017E3@ilog.fr> <oriug1xbs5.fsf.cygnus.egcs@araguaia.dcc.unicamp.br>
>>>>> Alexandre Oliva <oliva@dcc.unicamp.br> writes:
>> (HP aCC 1.15 flags (1) as an error, but Dec cxx 6.1 does not)
> The code is correct, as long as `ptr' is found to be a type at
> template instantiation time.
No. The compiler must know when the template is parsed whether a name is a
type.
Jason