blob: 6b7a7a439109aa5df607175636c9767e81ce4df3 [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;
};
struct X { } x;
int main() {
S2<X> s1(0); // { dg-error "no matching function" }
S2<X> s2; // { dg-error "use of deleted function" }
}