r244549 - in /branches/gcc-6-branch/gcc: fortra...
jakub@gcc.gnu.org
jakub@gcc.gnu.org
Tue Jan 17 20:29:00 GMT 2017
Author: jakub
Date: Tue Jan 17 20:29:19 2017
New Revision: 244549
URL: https://gcc.gnu.org/viewcvs?rev=244549&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-6-branch/gcc/testsuite/gfortran.dg/gomp/pr78866-1.f90
branches/gcc-6-branch/gcc/testsuite/gfortran.dg/gomp/pr78866-2.f90
Modified:
branches/gcc-6-branch/gcc/fortran/ChangeLog
branches/gcc-6-branch/gcc/fortran/openmp.c
branches/gcc-6-branch/gcc/fortran/trans-openmp.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
branches/gcc-6-branch/gcc/testsuite/gfortran.dg/gomp/map-1.f90
More information about the Gcc-cvs
mailing list