Article ID: 167351
Article Last Modified on 12/2/2003
// Sample Code that causes the error.
template <class T1> struct A {
int x;
T1 y;
int T2;
};
template <class T2> struct B : A<T2> {
using A<T2>::T2;
};
// Sample Code that works around the error by changing the template
// argument list.
template <class T1> struct A {
int x;
T1 y;
int T2;
};
template <class T3> struct B : A<T3> {
using A<T3>::T2;
};
Keywords: kbbug kbfix kbnoupdate kbcode KB167351