1 // PR c++/51507 2 // { dg-do compile { target c++11 } } 3 4 template<typename ...> 5 struct foo { typedef void type; }; 6 template<typename ...Ts> 7 auto g(Ts ...ts)-> 8 typename foo<decltype(ts)...>::type 9 {} main()10 int main() { 11 g(42); 12 } 13