1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// PR middle-end/99007 // { dg-additional-options "-Wno-div-by-zero" } template <typename T> void bar (T *) { T s[0/0]; #pragma omp teams distribute parallel for reduction(+:s) allocate(s) for (int i = 0; i < 8; i++) ; } void foo (long *a) { bar (a); }