repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fortran: Fix problems with substring selectors in ASSOCIATE [PR115700]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
tpl-parallel-2.C
blob
93e076047e7f8bd95e29e2808f3a201788d3d543
1
// { dg-do compile }
2
3
template<typename T>
4
struct S
5
{
6
T n;
7
void test();
8
void work();
9
};
10
11
template<typename T>
12
void S<T>::test()
13
{
14
#pragma omp parallel num_threads(n) // { dg-error "must be integral" }
15
work();
16
}
17
18
template struct S<int>;
19
template struct S<long>;
20
template struct S<float>; // { dg-message "required from here" }