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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Aug  1 06:31:20 2019
New Revision: 273966

URL: https://gcc.gnu.org/viewcvs?rev=273966&root=gcc&view=rev
Log:
        Backported from mainline
        2019-07-31  Jakub Jelinek  <ja...@redhat.com>

        PR middle-end/91301
        * gimplify.c (gimplify_omp_for): If for class iterator on
        distribute parallel for there is no data sharing clause
        on inner_for_stmt, look for private clause on combined
        parallel too and if found, move it to inner_for_stmt.

        * testsuite/libgomp.c++/for-27.C: New test.

Added:
    branches/gcc-9-branch/libgomp/testsuite/libgomp.c++/for-27.C
Modified:
    branches/gcc-9-branch/gcc/ChangeLog
    branches/gcc-9-branch/gcc/gimplify.c
    branches/gcc-9-branch/libgomp/ChangeLog

Reply via email to