PR fortran/79154
commit3dfeb19cd21916a90c95a67881742b6312e6140d
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 22 Jan 2017 19:36:57 +0000 (22 19:36 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 22 Jan 2017 19:36:57 +0000 (22 19:36 +0000)
tree3a078e1a007c2b0228aece9ccc07a907c1fb6242
parent239eb531b035fe8b7b8b8d600cce3fe971e3651f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244763 138bc75d-0d04-0410-961f-82ee72b054a4
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]