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

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Oct 12 14:49:32 2018
New Revision: 265107

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

        PR middle-end/86539
        * gimplify.c (gimplify_omp_for): Ensure taskloop firstprivatized init
        and cond temporaries don't have reference type if iterator has
        pointer type.  For init use &for_pre_body instead of pre_p if
        for_pre_body is non-empty.

        * testsuite/libgomp.c++/pr86539.C: New test.

Added:
    branches/gcc-7-branch/libgomp/testsuite/libgomp.c++/pr86539.C
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/gimplify.c
    branches/gcc-7-branch/libgomp/ChangeLog

Reply via email to