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]

Problem with std:: hack and template base class



hi -

The following source gives a parse error:

-------------------------------------------------------------------------
template <class T> class A {};

class C : public std::A<int> {};
-------------------------------------------------------------------------

z.cc:4: parse error before `{'

(This is egcs as updated from the cvs archive as of this afternoon, on a
mips-sgi-irix6.2 system.)

The error goes away if A is not a template.

thanks,
sss


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