blob: abfe96e824019ef898f718d5b7f4746196e8cbfa [file] [log] [blame]
// { dg-do compile { target c++17_only } }
// { dg-options "-fconcepts" }
template<typename T>
concept bool C() { return __is_class(T); }
template<typename T>
struct S1 {
template<C U>
S1(U x) { }
};
template<typename T>
struct S2 : S1<T> { // { dg-error "no matching function" }
using S1<T>::S1; // { dg-error "no matching function" }
};
struct X { } x;
int main() {
S2<X> s1(0); // { dg-error "use of deleted function" }
S2<X> s2; // { dg-error "use of deleted function" }
}