gcc/testsuite/g++.dg/cpp2a/concepts-template-parm5.C
raw| 1 | // { dg-do compile { target c++20 } } |
| 2 | |
| 3 | template<typename T> |
| 4 | concept Int = __is_same_as(T, int); |
| 5 | |
| 6 | template<Int... Ts = int> struct S1; // { dg-error "default argument" } |
| 7 | template<Int... = int> struct S2; // { dg-error "default argument" } |
| 8 | template<Int auto... Ns = 0> struct S3; // { dg-error "default argument" } |
| 9 | template<Int auto... = 0> struct S4; // { dg-error "default argument" } |