Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/ttp2.C

raw
1 // PR c++/95036
2 // { dg-do compile { target c++17 } }
3
4 namespace a {
5 template <int b> struct c { static constexpr int d = b; };
6 template <bool, typename e = void> using f = e;
7 template <typename e, e...> struct g;
8 template <typename> struct array;
9 } // namespace a
10 template <template <class> class h> struct i {
11 template <template <class, auto...> class, class = void> struct n;
12 template <class j> struct n<h, j> : a::c<true> {};
13 template <template <class> class k, class = a::f<n<k>::d>> void function();
14 };
15 template <template <class> class... l> struct derived : i<l>... {
16 using i<l>::function...;
17 };
18 int main() {
19 derived<a::array, a::g> m;
20 m.function<a::array>();
21 }