re PR fortran/86421 (OpenMP declare simd linear ref in module causes gfortran to...
authorJakub Jelinek <jakub@redhat.com>
Tue, 10 Jul 2018 07:27:37 +0000 (09:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 10 Jul 2018 07:27:37 +0000 (09:27 +0200)
commit100291de48d70d56f8ec31e8ba8d9edd1ee95b45
tree7af00363ff567326a2db773e9c4dfc629fd0d312
parent0b27c3eda934bfc946d64fb72203001c5bee46a1
re PR fortran/86421 (OpenMP declare simd linear ref in module causes gfortran to bail out)

PR fortran/86421
* module.c (omp_declare_simd_clauses): Add LINEAR with _REF, _VAL and
_UVAL suffixes.
(mio_omp_declare_simd): Save and restore ref, val and uval modifiers
on linear clauses.  Initialize n->where to gfc_current_locus.

* gfortran.dg/vect/pr86421.f90: New test.

From-SVN: r262535
gcc/fortran/ChangeLog
gcc/fortran/module.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/vect/pr86421.f90 [new file with mode: 0644]