c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic164.C
blob8f9cdb18c2d8c5263ef5d7311a1af5fbee3ada31
1 // PR c++/63522
2 // { dg-do compile { target c++11 } }
4 template <typename...> struct tuple;
5 template <typename...> void slice();
6 template <int Index, typename...> using slice_result = decltype(slice<Index>);
7 template <typename Tuple, typename... Tuples, int... ElementIndices,
8           typename =
9               typename tuple<slice_result<ElementIndices, Tuples...>,
10                              slice_result<ElementIndices, Tuples...>...>::type> // { dg-error "parameter pack" }
11 void zip_with(Tuple...);
12 decltype(zip_with(0)) d;        // { dg-error "no match" }