1 // PR c++/50075 2 // { dg-options "-std=c++0x -ftemplate-depth=10" } 3 4 template <typename T> 5 auto make_array(const T& il) -> 6 decltype(make_array(il)) // { dg-error "not declared|no matching|exceeds" } 7 { } 8 main()9int main() 10 { 11 int z = make_array(1); // { dg-error "no matching" } 12 } 13