This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Correction to - Problem with "typename" in base class list
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Correction to - Problem with "typename" in base class list
- From: Will <e1wwater at dingo dot cc dot uq dot edu dot au>
- Date: Mon, 21 Feb 2000 03:31:01 +1000
Although handled previously by EGCS 1.1.x, GCC 2.95.2 cannot handle the
keyword "typename" within the base class list of a class definition. To
see what I mean, try compiling the following:
class EncapClass
{
};
template <class A>
class BaseTemplate
{
public:
typedef EncapClass
Type;
};
template <class A, template <class B> class BaseTemp>
class DerivedTemplate :
public typename BaseTemp <A>::Type // Problem is
caused by this line
{
};
int main()
{
}