This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Re: Strange bug with templates?
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: Re: Re: Strange bug with templates?
- From: "Rtveliashvili Denis" <rtvd at mail dot ru>
- Date: Wed, 29 Sep 1999 19:35:01 +0300
> 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)