re PR fortran/84418 (ICE with fortran OpenMP linear (ref ()) clause)
authorJakub Jelinek <jakub@gcc.gnu.org>
Fri, 16 Feb 2018 22:40:32 +0000 (23:40 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 16 Feb 2018 22:40:32 +0000 (23:40 +0100)
commit83d9be558117c0dea6b12d3db4171eae1c90a2d7
tree2928af1a64421d351d8d34be1829fa0f34927163
parent019e0ae8e00068d14aeee7c3b9e54ec14d2a5dd9
re PR fortran/84418 (ICE with fortran OpenMP linear (ref ()) clause)

PR fortran/84418
* trans-openmp.c (gfc_trans_omp_clauses): For OMP_CLAUSE_LINEAR_REF
kind set OMP_CLAUSE_LINEAR_STEP to TYPE_SIZE_UNIT times last_step.

* libgomp.fortran/pr84418-1.f90: New test.
* libgomp.fortran/pr84418-2.f90: New test.

From-SVN: r257771
gcc/fortran/ChangeLog
gcc/fortran/trans-openmp.c
libgomp/ChangeLog
libgomp/testsuite/libgomp.fortran/pr84418-1.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/pr84418-2.f90 [new file with mode: 0644]