[Bug middle-end/106504] [OpenMP] 'for simd linear(i:1)' should be rejected with 'parallel private(i)'
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Aug 10 07:40:55 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106504
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
There have been discussions about this in several F2Fs.
For linear it is desirable to allow private outer var because linear
is the implicit behavior of simd iterators and people want to be able to use
them
even if they are private outer (say even simple
void foo (int *a) { int i;
#pragma omp simd
for (i = 0; i < 16; i++)
a[i] = i;
}
would be then invalid).
Some people wanted to just drop the requirements even for lastprivate etc.
(silently not assign to outer var).
More information about the Gcc-bugs
mailing list