blob: 71359cde6e4e3e8fd63c8bccee65437668955c6e [file] [log] [blame]
// PR c++/58503
// { dg-require-effective-target c++11 }
template<int> void foo()
{
for (auto i : 0) {} // { dg-error "there are no arguments" }
}