This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 3.4.3 C++ parsing bug?
- From: Karel Gardas <kgardas at objectsecurity dot com>
- To: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Fri, 11 Feb 2005 23:37:52 +0100 (CET)
- Subject: Re: 3.4.3 C++ parsing bug?
On Fri, 11 Feb 2005, Karel Gardas wrote:
> On Fri, 11 Feb 2005, Jan Reimers wrote:
>
> > Can someone verify that this is valid C++ before I submit a bug report:
> >
> > // test.C
> > template <class T> class A {static T* c;};
> >
> > class B : public A<B> {};
> >
> > B* A<B>::c=0;
> > // end test.C
> >
>
> At least Comeau C++ 4.3.3 and Intel C++ 8.0 compile it and to me it also
> looks ok, but I'm not at all C++ language lawer!
Thanks to Joe Buck's note, I've found that I've compiled the code with
default, i.e. not so ANSI C++ strict options. I can just confirm that both
Comeau and Intel also fail to compile the code above with proper more
strict options (-A for como, -ansi for icpc).
Thanks,
Karel
--
Karel Gardas kgardas@objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.com