aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/concepts-pr67658.C
blob: cd82a84e7fed439ed7e8bc183c3ca302c440cf5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// { dg-do compile { target c++20 } }
// { dg-additional-options "-fconcepts" }

template<class T> concept C1 = false;
template<C1 T> concept C2 =  true;  // { dg-error "cannot be constrained" }

void f(C2 auto x) {
}

struct A {} a;

int main() {
  f(a);
}