// { dg-do compile { target c++17 } } // { dg-options "-fconcepts" } template concept C = __is_class(T); template struct S1 { template S1(U x) { } }; template struct S2 : S1 { // { dg-error "no matching function" } using S1::S1; }; struct X { } x; int main() { S2 s1(0); // { dg-error "no matching function" } S2 s2; // { dg-error "use of deleted function" } }