blob: 481583e80e3daa2f5d3239cdb3a99ae2bf202860 [file] [log] [blame]
// PR c++/38639
// { dg-do compile }
// { dg-options "-fopenmp -std=c++0x" }
template<int> void
foo ()
{
#pragma omp parallel for
for (auto i = i = 0; i<4; ++i) // { dg-error "incomplete|unable|invalid|auto" }
;
}
void
bar ()
{
foo<0> (); // { dg-message "required from here" }
}