OpenMP/Fortran: Reject allocatable components in map clause
authorTobias Burnus <tobias@codesourcery.com>
Thu, 18 Jun 2020 13:27:30 +0000 (15:27 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Thu, 18 Jun 2020 13:27:30 +0000 (15:27 +0200)
commitac70b20b1007da0d3d02a9cec3c0715145c4b593
treed4ec5d6ca6ca715e1d05773262ef0a84573b366f
parenteccc3d432669ba272229d49f015cb986df21eb0a
OpenMP/Fortran: Reject allocatable components in map clause

gcc/fortran/ChangeLog:

* openmp.c (resolve_omp_clauses): Reject vars with
allocatable components in OpenMP map clauses.

gcc/testsuite/ChangeLog:

* gfortran.dg/gomp/map-alloc-comp-1.f90: New test.
gcc/fortran/openmp.c
gcc/testsuite/gfortran.dg/gomp/map-alloc-comp-1.f90 [new file with mode: 0644]