blob: 4861cf301ed38b5d18bf635a7a95f2c1559bb0c4 [file] [log] [blame]
// { dg-do assemble }
template < class T > class A
{
public:
typedef typename T::myT anotherT; // { dg-error "" } undefined type
anotherT t;
A() { }
A(anotherT _t) {
t=_t;
}
anotherT getT() {
return t;
}
};
class B : public A< B > // { dg-error "" } forward declaration
{
public:
typedef int myT;
};
int main() {
B b;
}