diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-08-08 19:48:48 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-08-08 19:48:48 +0000 |
commit | 7cbcf6088290f48ece925849e0f421600dba613e (patch) | |
tree | d3ca52c0cc5c98967db7a0eff960880f6e8bc5bb /gcc/fortran/openmp.c | |
parent | aa1ddb661400b74bcbb34eefd1cf249e57e319ec (diff) |
PR fortran/72716
* openmp.c (gfc_match_omp_declare_simd): Don't stick anything into
BLOCK DATA ns, it will be rejected later.
* gfortran.dg/gomp/pr72716.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239250 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/openmp.c')
-rw-r--r-- | gcc/fortran/openmp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/fortran/openmp.c b/gcc/fortran/openmp.c index 9fff9942057b..2fed49189070 100644 --- a/gcc/fortran/openmp.c +++ b/gcc/fortran/openmp.c @@ -2000,6 +2000,12 @@ gfc_match_omp_declare_simd (void) false) != MATCH_YES) return MATCH_ERROR; + if (gfc_current_ns->is_block_data) + { + gfc_free_omp_clauses (c); + return MATCH_YES; + } + ods = gfc_get_omp_declare_simd (); ods->where = where; ods->proc_name = proc_name; |