[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
Wed Dec 21 16:17:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78866
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Dec 21 16:16:20 2016
New Revision: 243860
URL: https://gcc.gnu.org/viewcvs?rev=243860&root=gcc&view=rev
Log:
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:
trunk/gcc/testsuite/gfortran.dg/gomp/pr78866-1.f90
trunk/gcc/testsuite/gfortran.dg/gomp/pr78866-2.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/openmp.c
trunk/gcc/fortran/trans-openmp.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/gomp/map-1.f90
More information about the Gcc-bugs
mailing list