[Bug fortran/78866] ICE in gimplify_adjust_omp_clauses_1, at gimplify.c:8721
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 30 07:55:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78866
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue May 30 07:52:55 2017
New Revision: 248636
URL: https://gcc.gnu.org/viewcvs?rev=248636&root=gcc&view=rev
Log:
Backported from mainline
2016-12-21 Jakub Jelinek <jakub@redhat.com>
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.
Added:
branches/gcc-5-branch/gcc/testsuite/gfortran.dg/gomp/pr78866-1.f90
branches/gcc-5-branch/gcc/testsuite/gfortran.dg/gomp/pr78866-2.f90
Modified:
branches/gcc-5-branch/gcc/fortran/ChangeLog
branches/gcc-5-branch/gcc/fortran/openmp.c
branches/gcc-5-branch/gcc/fortran/trans-openmp.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
branches/gcc-5-branch/gcc/testsuite/gfortran.dg/gomp/map-1.f90
More information about the Gcc-bugs
mailing list