]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: %re/%im fixes for OpenMP/OpenACC + gfc_is_simplify_contiguous
authorTobias Burnus <tobias@codesourcery.com>
Tue, 16 Feb 2021 16:39:49 +0000 (17:39 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Tue, 16 Feb 2021 16:39:49 +0000 (17:39 +0100)
commit799478b8914c438f7a33eb319efbae69c81f2111
tree4a6c9bceb761178477d37e7429587d4af16528f8
parent72d78655a91bb2f89ac4432cfd6374380d6f9987
Fortran: %re/%im fixes for OpenMP/OpenACC + gfc_is_simplify_contiguous

gcc/fortran/ChangeLog:

* expr.c (gfc_is_simplify_contiguous): Handle REF_INQUIRY, i.e.
%im and %re which are EXPR_VARIABLE.
* openmp.c (resolve_omp_clauses): Diagnose %re/%im explicitly.

gcc/testsuite/ChangeLog:

* gfortran.dg/goacc/ref_inquiry.f90: New test.
* gfortran.dg/gomp/ref_inquiry.f90: New test.
gcc/fortran/expr.c
gcc/fortran/openmp.c
gcc/testsuite/gfortran.dg/goacc/ref_inquiry.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/ref_inquiry.f90 [new file with mode: 0644]