This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Problem with std:: hack and template base class
- To: egcs-bugs at cygnus dot com
- Subject: Problem with std:: hack and template base class
- From: scott snyder <snyder at d0sgif dot fnal dot gov>
- Date: Mon, 02 Feb 1998 21:27:03 CST
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