aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-template-parm5.C
blob: 78b6f1c799bc19c59437209a26dc66d1486e66ae (plain)
1
2
3
4
5
6
7
8
9
// { dg-do compile { target c++2a } }

template<typename T>
  concept Int = __is_same_as(T, int);

template<Int... Ts = int> struct S1; // { dg-error "default argument" }
template<Int... = int> struct S2; // { dg-error "default argument" }
template<Int auto... Ns = 0> struct S3; // { dg-error "default argument" }
template<Int auto... = 0> struct S4; // { dg-error "default argument" }