Debian Codegraph @

gcc/testsuite/g++.dg/modules/nested-constr-2_a.C

raw
1 // { dg-additional-options "-std=c++2a -fmodules-ts" }
2 export module foo;
3 // { dg-module-cmi foo }
4
5 export template<typename T>
6 struct traits
7 {
8 template<typename U>
9 struct nested
10 { using type = void; };
11
12 template<typename U> requires requires { typename U::type; }
13 struct nested<U>
14 { using type = typename U::type; };
15 };
16
17 export using V = traits<char>::nested<int>::type;
18