summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/pr38639.C
blob: 1da3cecdf072fb122e4d17ddb871b04ef7b629e4 (plain)
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" }
}