1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// 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" } ; } void bar () { foo<0> (); // { dg-message "instantiated from here" } }