Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/concepts-template-parm11.C

raw
1 // PR c++/100374
2 // { dg-do compile { target c++20 } }
3
4 template<class T, class U>
5 concept C = requires { typename T; };
6
7 template<class T>
8 struct A {
9 template<C<typename T::value_type> U>
10 void f();
11
12 template<C<typename T::value_type> U>
13 struct B;
14 };
15
16 int main() {
17 A<int> a;
18 a.f<void>();
19 using type = A<int>::B<void>;
20 }