projects
/
platform
/
upstream
/
gcc48.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 4.7.2
[platform/upstream/gcc48.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 "required from here" }
17
}