gcc/testsuite/g++.dg/gomp/pr84557.C
raw| 1 | // PR c++/84557 |
| 2 | // { dg-do compile } |
| 3 | |
| 4 | template<int> struct A {}; |
| 5 | template<int> struct B {}; |
| 6 | |
| 7 | void |
| 8 | foo () |
| 9 | { |
| 10 | #pragma omp parallel firstprivate (A) // { dg-error "is not a variable in clause" } |
| 11 | ; |
| 12 | #pragma omp parallel firstprivate (B<0>) // { dg-error "is not a variable in clause" } |
| 13 | ; |
| 14 | } |