https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78866

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
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  <ja...@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

Reply via email to