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

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, IMNSHO this is invalid.
reduction is a privatization clause, and one can't privatize two elements of
the same variable separately.  It is valid to do #pragma omp parallel
reduction(+:temps[:2]), but not reduction(+:temps[0], temps[1])

Reply via email to