1 // PR c++/58503 2 // { dg-require-effective-target c++11 } 3 foo()4 template<int> void foo() 5 { 6 for (auto i : 0) {} // { dg-error "there are no arguments" } 7 } 8