OSDN Git Service

PR middle-end/38633
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / gomp / pr38639.C
1 // PR c++/38639
2 // { dg-do compile }
3 // { dg-options "-fopenmp -std=c++0x" }
4
5 template<int> void
6 foo ()
7 {
8 #pragma omp parallel for
9   for (auto i = i = 0; i<4; ++i)        // { dg-error "incomplete|unable|invalid" }
10     ;
11 }
12
13 void
14 bar ()
15 {
16   foo<0> ();                            // { dg-message "instantiated from here" }
17 }