[Fortran, OpenMP] Fix allocatable-components check (PR67311)
authorTobias Burnus <tobias@codesourcery.com>
Tue, 14 Jul 2020 10:55:53 +0000 (12:55 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 14 Jul 2020 10:55:53 +0000 (12:55 +0200)
commit174e79bf73331b41b7a14dffd45ed8293487f0e0
treef07e667a6df8fd524a8a44089519d655faacf644
parentf418bd4b92a03ee0ec0fe4cfcd896e86e11ac2cf
[Fortran, OpenMP] Fix allocatable-components check (PR67311)

gcc/fortran/ChangeLog:

PR fortran/67311
* trans-openmp.c (gfc_has_alloc_comps): Return false also for
pointers to arrays.

libgomp/ChangeLog:

PR fortran/67311
* testsuite/libgomp.fortran/target-map-1.f90: New test.
gcc/fortran/trans-openmp.c
libgomp/testsuite/libgomp.fortran/target-map-1.f90 [new file with mode: 0644]