1 // PR c++/94628
2 // { dg-do compile { target c++11 } }
3 
4 int f(int, int);
5 int f(int);
6 
7 template<class...Args>
8 auto select(Args... args) -> decltype(f(args...))
9 {
10   if (sizeof...(Args) > 1)
11     return select<char>(7);
12   else
13     return 0;
14 }
15 
16 int a = select(0, 1);
17