2 // { dg-do compile { target c++11 } }
4 struct il { il(); il(const il&); };
8 template<class T> T&& declval();
10 template<class T, class U = decltype(begin(declval<T&>())), decltype(*U(),0) = 0>
11 U g(T& t, long) { return begin(t); } // #1
14 int g(T& t, ...); // #2
18 auto n = g(a, 0); // calls #1 and ends with a hard error, should call #2