Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-pr67658.C

raw
1 // { dg-do compile { target c++20 } }
2 // { dg-additional-options "-fconcepts" }
3
4 template<class T> concept C1 = false;
5 template<C1 T> concept C2 = true; // { dg-error "cannot be constrained" }
6
7 void f(C2 auto x) {
8 }
9
10 struct A {} a;
11
12 int main() {
13 f(a);
14 }