1 // { dg-options "-std=c++17 -fconcepts" }
3 template<typename ... T>
4 concept bool C1 = true;
7 concept bool C2 = true;
10 concept bool C3 = __is_class(T);
12 template<typename ... T>
13 concept bool C4() { return true; }
15 concept bool C4() { return true; }
17 template<typename T, typename U = int>
18 concept bool C5() { return __is_class(U); }
20 C1{...A, B} void f1() {}; // { dg-error "no matching|wrong number" }
21 C1{A} void f2() {} // { dg-error "cannot match pack|no matching concept" }
22 C2{A, B} void f3() {}; // { dg-error "cannot match pack|no matching concept" }
23 C3{...A} void f4() {}; // { dg-error "cannot match pack|no matching concept" }
24 C4{A} void f5() {}; // { dg-error "no matching concept" }
25 C5{A, B} void f6() {};
29 // Defaults should not transfer
30 f6<int>(); // { dg-error "no matching" }