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