[Bug fortran/97061] [OpenMP] ICE in in omp_add_variable, at gimplify.c:6955

2020-09-16 Thread burnus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97061

Tobias Burnus  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|UNCONFIRMED |RESOLVED

--- Comment #4 from Tobias Burnus  ---
FIXED.

[Bug fortran/97061] [OpenMP] ICE in in omp_add_variable, at gimplify.c:6955

2020-09-16 Thread cvs-commit at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97061

--- Comment #3 from CVS Commits  ---
The master branch has been updated by Tobias Burnus :

https://gcc.gnu.org/g:91347c3bbf788ede4af89f46206991c47fa8aceb

commit r11-3232-g91347c3bbf788ede4af89f46206991c47fa8aceb
Author: Tobias Burnus 
Date:   Wed Sep 16 16:23:13 2020 +0200

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.

[Bug fortran/97061] [OpenMP] ICE in in omp_add_variable, at gimplify.c:6955

2020-09-16 Thread burnus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97061

--- Comment #2 from Tobias Burnus  ---
I think I also got this ICE with an additional 'collapse(2)', which might
indicate that a(nother) check is missing.

[Bug fortran/97061] [OpenMP] ICE in in omp_add_variable, at gimplify.c:6955

2020-09-16 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97061

Jakub Jelinek  changed:

   What|Removed |Added

 CC||jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek  ---
If it is the FE that adds the linear clause, then it shouldn't when there is
explicit lastprivate clause.  This is a new thing in OpenMP 5.0, in 4.5 it was
invalid to make the iterate anything but linear in this case, now it can be
made private or lastprivate.