summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-explicit-spec3.C
blob: 76c6fb9bd34e3cf35e7bc99e54126d07250ce7b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// { dg-do compile { target c++2a } }

template<typename T>
  concept C = __is_class(T);

template<C T> struct S;

struct X { };

// Not a valid explicit specialization, int does not satisfy C.
template<> struct S<int> { }; // { dg-error "constraint failure" }

int main() { }