1 // PR c++/51620 2 3 template<int> class A 4 { 5 virtual ~A(); // { dg-message "non-deleted|private" } 6 }; 7 8 struct B : A<0>, A<1> // { dg-error "deleted|context" } 9 { BB10 B() {} // { dg-error "context" } 11 }; 12