This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: possible bug
- To: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Subject: Re: possible bug
- From: Manush Dodunekov <manush at litecom dot se>
- Date: Tue, 27 Jul 1999 12:27:15 +0200 (CEST)
- cc: gcc at gcc dot gnu dot org
- Organization: LiteCom Interactive
On 26 Jul 1999, Alexandre Oliva wrote:
> On Jul 25, 1999, Manush Dodunekov <manush@litecom.se> wrote:
>
> > The code below compiles fine with no flags, but fails to compile with a
> > parse error on the line containing "iterator i;" when compiling with
> > -pedantic.
>
> That's correct. Members of template-dependent base classes must be
> explicitly qualified. Without -pedantic, gcc accepts it as an
> extension.
However, using
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? Shouldn't the first case be enough?
regards,
Manush