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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Jul 26 16:32:51 2018
New Revision: 263014

URL: https://gcc.gnu.org/viewcvs?rev=263014&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-8-branch/libgomp/testsuite/libgomp.c++/pr86539.C
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/gimplify.c
    branches/gcc-8-branch/libgomp/ChangeLog

Reply via email to