Debian Codegraph @

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

raw
1 // PR c++/121981
2 // { dg-do compile { target c++20 } }
3
4 template<auto V>
5 concept C = requires { V; };
6
7 template<class T, auto V>
8 concept D = C<V>;
9
10 template<auto V, D<V> auto W>
11 struct A { };
12
13 template<auto V, D<V> T>
14 struct B { };
15
16 A<0, 1> a;
17 B<0, int> b;