blob: 1d6c5e9c3b9e6b6dd136b78a89d6d4a8e72bcad8 [file] [log] [blame]
template <class T1, class T2>
class A {
template <class S>
class SubA {
int _k;
};
T1 _t1;
T2 _t2; // { dg-error "instantiated" "" { xfail *-*-* } }
};
template <class U>
class B { // { dg-error "" "" { xfail *-*-* } }
class SubB1 {
B _i; // { dg-error "" "" { xfail *-*-* } }
};
class SubB2 {
int _j;
};
A<U,SubB1>::SubA<SubB2> _a; // { dg-error "" }
};
int main() {
B<char> objB; // { dg-error "instantiated" "" { xfail *-*-* } }
return 0;
}