https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123597
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
No, it is not shared by all threads. The int sum = 0; declaration is still
inside of
#pragma omp parallel shared(A)
body and so each thread has its own.
BTW, it changed with r14-3490-g53891f18f32588d86ba0ec1c5e6206df63be714b