https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94690
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:f884bef21cccc05d748fd7869cd641cbb4f6b6bb commit r11-349-gf884bef21cccc05d748fd7869cd641cbb4f6b6bb Author: Tobias Burnus <tob...@codesourcery.com> Date: Wed May 13 10:06:45 2020 +0200 [Fortran] OpenMP - permit lastprivate in distribute + SIMD fixes (PR94690) gcc/fortran/ 2020-05-13 Tobias Burnus <tob...@codesourcery.com> PR fortran/94690 * openmp.c (OMP_DISTRIBUTE_CLAUSES): Add OMP_CLAUSE_LASTPRIVATE. (gfc_resolve_do_iterator): Skip the private handling for SIMD as that is handled by ME code. * trans-openmp.c (gfc_trans_omp_do): Don't add private/lastprivate for dovar_found == 0, unless !simple. libgomp/ 2020-05-13 Tobias Burnus <tob...@codesourcery.com> PR fortran/94690 * testsuite/libgomp.fortran/pr66199-3.f90: New. * testsuite/libgomp.fortran/pr66199-4.f90: New. * testsuite/libgomp.fortran/pr66199-5.f90: New. * testsuite/libgomp.fortran/pr66199-6.f90: New. * testsuite/libgomp.fortran/pr66199-7.f90: New. * testsuite/libgomp.fortran/pr66199-8.f90: New. * testsuite/libgomp.fortran/pr66199-9.f90: New.