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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jul 31 07:49:56 2019
New Revision: 273922

URL: https://gcc.gnu.org/viewcvs?rev=273922&root=gcc&view=rev
Log:
        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:
    trunk/libgomp/testsuite/libgomp.c++/for-27.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimplify.c
    trunk/libgomp/ChangeLog

Reply via email to