1 // Contributed by Dodji Seketeli <dodji@redhat.com> 2 // Origin: PR c++/40155 3 // { dg-do compile { target c++11 } } 4 5 template <typename T> struct identity 6 { typedef T type; }; 7 8 template <typename RT, typename... A> 9 int forward_call(RT (*) (A...), typename identity<A>::type...); 10 11 int g (double); 12 13 int i = forward_call(&g, 0); 14