This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: possible bug


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]