gcc/testsuite/g++.dg/cpp0x/alias-decl-variadic3.C
raw| 1 | // PR c++/118104 |
| 2 | // { dg-do compile { target c++11 } } |
| 3 | |
| 4 | template<typename... Zs> struct Z { }; |
| 5 | |
| 6 | template <class... Ts> struct X { |
| 7 | template <class... Us> using W = Z<void(Ts, Us)...>; |
| 8 | template <class... Us> using Y = X<void(Ts, Us)...>; |
| 9 | }; |
| 10 | |
| 11 | template <class A, class... P> |
| 12 | using foo = X<int, int>::W<A, P...>; |
| 13 | |
| 14 | template <class A, class... P> |
| 15 | using bar = X<int, int>::Y<A, P...>; |
| 16 | |
| 17 | void |
| 18 | g () |
| 19 | { |
| 20 | foo<int, int> f; |
| 21 | bar<int, int> b; |
| 22 | } |