This is the mail archive of the gcc-bugs@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: Re: Strange bug with templates?


> From: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
> To: Rtveliashvili Denis <rtvd@mail.ru>
> Cc: gcc-bugs@gcc.gnu.org
> Subject: Re: Strange bug with templates?
> Date: 22 сентября 1999 г. 19:44
> 
> On Sep 22, 1999, "Rtveliashvili Denis" <rtvd@mail.ru> wrote:
> 
> > 	B < E < T > > :: C *iter;
>       ^ you're missing the `typename' keyword here.
> 
> The C++ Standard requires qualified names whose qualifiers depend on
> template-arguments to be preceded by the `typename' keyword.  I
> haven't checked if this is enough to fix your problem.  If not, please
> submit a new report.

So, if I'm not mistaken I had to insert a 'class' keyword there. But it
doesn't
work. Then I tried to insert 'class' anywhere it's possible but the problem
still
remains. This time I compiled that program with egcs 2.91.66
	
                  Denis   rtvd@mail.ru

T.cpp (CPP File)


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