1 // PR c++/49251 2 // { dg-do compile { target c++11 } } 3 // { dg-options "-Wunused-parameter" } 4 5 struct A {}; 6 template <int> int f(A); 7 8 template< int... Indices > 9 struct indices {}; 10 11 template< class... Args > sink(Args &&...)12void sink( Args&&... ) {} 13 14 template< class T, int... Indices > unpack_test(T && t,indices<Indices...>)15void unpack_test( T && t, indices<Indices...> ) { 16 sink( f<Indices>(t)... ); 17 } 18 main()19int main() { 20 unpack_test( A(), indices<>() ); 21 } 22