re PR fortran/78866 (ICE in gimplify_adjust_omp_clauses_1, at gimplify.c:8721)
authorJakub Jelinek <jakub@redhat.com>
Wed, 21 Dec 2016 16:16:20 +0000 (17:16 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 21 Dec 2016 16:16:20 +0000 (17:16 +0100)
commit4e2044d68d06c85761edf7510e23ea06c9279fdb
tree0489f66765bb50a8111ffa72c243ca6d9d23aa9b
parent5878034e0363e116f8f2fca4ee8cf2c24cb1e35c
re PR fortran/78866 (ICE in gimplify_adjust_omp_clauses_1, at gimplify.c:8721)

PR fortran/78866
* openmp.c (resolve_omp_clauses): Diagnose assumed size arrays in
OpenMP map, to and from clauses.
* trans-openmp.c: Include diagnostic-core.h, temporarily redefining
GCC_DIAG_STYLE to __gcc_tdiag__.
(gfc_omp_finish_clause): Diagnose implicitly mapped assumed size
arrays.

* gfortran.dg/gomp/map-1.f90: Add expected error.
* gfortran.dg/gomp/pr78866-1.f90: New test.
* gfortran.dg/gomp/pr78866-2.f90: New test.

From-SVN: r243860
gcc/fortran/ChangeLog
gcc/fortran/openmp.c
gcc/fortran/trans-openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/map-1.f90
gcc/testsuite/gfortran.dg/gomp/pr78866-1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/pr78866-2.f90 [new file with mode: 0644]