re PR fortran/78260 (ICE in gimplify_expr, at gimplify.c:11939)
commitac4a783640162ed734c538ce1ff516b40431834b
authorTobias Burnus <burnus@gcc.gnu.org>
Fri, 20 Sep 2019 16:05:06 +0000 (20 18:05 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Fri, 20 Sep 2019 16:05:06 +0000 (20 18:05 +0200)
tree58758d89b2d10fe43f3ce6b8d6b20db15be992a3
parent76c93295f3b3fec8f34fccbb2c5d574c1362752a
re PR fortran/78260 (ICE in gimplify_expr, at gimplify.c:11939)

2019-09-20  Tobias Burnus  <tobias@codesourcery.com>

        PR fortran/78260
        * openmp.c (gfc_resolve_oacc_declare): Reject all
        non variables but accept function result variables.
        * trans-openmp.c (gfc_trans_omp_clauses): Handle
        function-result variables for remaing cases.

2019-09-20  Tobias Burnus  <tobias@codesourcery.com>

        PR fortran/78260
        * gfortran.dg/goacc/parameter.f95: Change
        dg-error as it is now detected earlier.
        * gfortran.dg/goacc/pr85701.f90: Modify to
        use a separate result variable.
        * gfortran.dg/goacc/pr78260.f90: New.
        * gfortran.dg/goacc/pr78260-2.f90: New.
        * gfortran.dg/gomp/pr78260.f90: New.
        * gfortran.dg/gomp/pr78260-2.f90: New.
        * gfortran.dg/gomp/pr78260-3.f90: New.

From-SVN: r276002
gcc/fortran/ChangeLog
gcc/fortran/openmp.c
gcc/fortran/trans-openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/parameter.f95
gcc/testsuite/gfortran.dg/goacc/pr78260-2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/pr78260.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/goacc/pr85701.f90
gcc/testsuite/gfortran.dg/gomp/pr78260-2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/pr78260-3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/gomp/pr78260.f90 [new file with mode: 0644]