re PR fortran/79154 (omp declare simd in pure function?)
authorJakub Jelinek <jakub@redhat.com>
Sun, 22 Jan 2017 19:36:57 +0000 (20:36 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sun, 22 Jan 2017 19:36:57 +0000 (20:36 +0100)
commit386fe51c2b90385eac9a9dd42940073d68734359
tree3a078e1a007c2b0228aece9ccc07a907c1fb6242
parent0f314c78c2f6802622820248641e4f4bdf97e816
re PR fortran/79154 (omp declare simd in pure function?)

PR fortran/79154
* parse.c (matchs, matcho, matchds, matchdo): Replace return st;
with { ret = st; goto finish; }.
(decode_omp_directive): Allow declare simd, declare target and
simd directives in PURE/ELEMENTAL procedures.  Only call
gfc_unset_implicit_pure on successful match of other procedures.

* gfortran.dg/gomp/pr79154-1.f90: New test.
* gfortran.dg/gomp/pr79154-2.f90: New test.

From-SVN: r244763
gcc/fortran/ChangeLog
gcc/fortran/parse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/pr79154-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/pr79154-2.f90 [new file with mode: 0644]