]> git.ipfire.org Git - thirdparty/gcc.git/commit
openacc: Fortran derived-type mapping fix
authorJulian Brown <julian@codesourcery.com>
Wed, 3 Jun 2020 21:25:19 +0000 (14:25 -0700)
committerGiuliano Belinassi <giuliano.belinassi@usp.br>
Mon, 17 Aug 2020 16:17:04 +0000 (13:17 -0300)
commitc84850d68b9675e96f1729711ef9d835a06ded58
treefd9e13d7ca0ddbb2a3709db3eff086cdf44fd571
parent6ae03397c8de9e1997a45edaf71e4acf2a4d614d
openacc: Fortran derived-type mapping fix

Fix a bug with mapping Fortran components which themselves have derived
types in the OpenACC 2.5+ manual deep-copy support.

2020-07-09  Julian Brown  <julian@codesourcery.com>

gcc/fortran/
* trans-openmp.c (gfc_trans_omp_clauses): Use 'inner' not 'decl' for
derived type members which themselves have derived types.

gcc/testsuite/
* gfortran.dg/goacc/mapping-tests-3.f90: New test.
* gfortran.dg/goacc/mapping-tests-4.f90: New test.
gcc/fortran/trans-openmp.c
gcc/testsuite/gfortran.dg/goacc/mapping-tests-3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/mapping-tests-4.f90 [new file with mode: 0644]