https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63844

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #5)
> The issue here is the induction variable is shared?

Ah right, the testcase is clearly invalid.
There is a data race on i, as well as data races on all the a[i] stores
(because 4 different threads all do the same thing).
Andi, did you mean
#pragma omp parallel for num_threads(4)
instead?

Reply via email to