typedef in class
Alexandre Oliva
oliva@dcc.unicamp.br
Fri Sep 5 11:31:00 GMT 1997
Gregory Mounie writes:
> It seems to be a bug as g++ 2.7.2 works nicely.
It was a bug in g++ 2.7.2. The typename keyword is required in your
example:
> template <class C>
> void toto(C c) // templated function
> {
typename \
> C::titi t; // templated typedef, the error(l 13) is here
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc-bugs
mailing list