https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70598
--- Comment #4 from Chung-Lin Tang <cltang at gcc dot gnu.org> --- Author: cltang Date: Sun Aug 14 18:19:10 2016 New Revision: 239457 URL: https://gcc.gnu.org/viewcvs?rev=239457&root=gcc&view=rev Log: 2016-08-14 Chung-Lin Tang <clt...@codesourcery.com> PR fortran/70598 gcc/fortran/ * openmp.c (resolve_omp_clauses): Adjust use_device clause handling to only allow pointers and arrays. gcc/testsuite/ * gfortran.dg/goacc/host_data-tree.f95: Adjust to use pointers in use_device clause. * gfortran.dg/goacc/uninit-use-device-clause.f95: Likewise. * gfortran.dg/goacc/list.f95: Adjust to catch "neither a POINTER nor an array" error messages. libgomp/ * testsuite/libgomp.oacc-fortran/host_data-1.f90: New test. Added: trunk/libgomp/testsuite/libgomp.oacc-fortran/host_data-1.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/openmp.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gfortran.dg/goacc/host_data-tree.f95 trunk/gcc/testsuite/gfortran.dg/goacc/list.f95 trunk/gcc/testsuite/gfortran.dg/goacc/uninit-use-device-clause.f95 trunk/libgomp/ChangeLog