This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: possible bug
On Jul 27, 1999, Manush Dodunekov <manush@litecom.se> wrote:
> vector<T>::iterator i;
> doesn't help the compile; It only compiles when using
> typename vector<T>::iterator i;
> What does the standard say on this?
`typename' is required before template-dependent qualified type
names.
> Shouldn't the first case be enough?
It'll probably work without -pedantic, but it is a gcc extension,
don't count on it.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them