Fortran: OpenMP - fix simd with (last)private (PR97061)
authorTobias Burnus <tobias@codesourcery.com>
Wed, 16 Sep 2020 14:23:13 +0000 (16:23 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 16 Sep 2020 14:23:13 +0000 (16:23 +0200)
commit91347c3bbf788ede4af89f46206991c47fa8aceb
treedb8eee921a878bd0b338c07697193f38eae5aec5
parent2b7147e48564679d53b3c6629714991c5506d614
Fortran: OpenMP - fix simd with (last)private (PR97061)

gcc/fortran/ChangeLog:

PR fortran/97061
* trans-openmp.c (gfc_trans_omp_do): Handle simd with (last)private.

gcc/testsuite/ChangeLog:

PR fortran/97061
* gfortran.dg/gomp/openmp-simd-6.f90: New test.
gcc/fortran/trans-openmp.c
gcc/testsuite/gfortran.dg/gomp/openmp-simd-6.f90 [new file with mode: 0644]