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]
Other format: [Raw text]

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


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