fortran: Fix ICE when 'if' clause used with 'target parallel' (PR95869)
authorKwok Cheung Yeung <kcy@codesourcery.com>
Thu, 25 Jun 2020 11:40:53 +0000 (04:40 -0700)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Thu, 25 Jun 2020 13:09:40 +0000 (06:09 -0700)
commitf530bac8a11da9c85bdd8e58d589747f9825e38d
tree4e7f0519934bb2102e4c50152e15f4c4ee28f384
parent1dfa89b0355520ca501054726f25de9733796f48
fortran: Fix ICE when 'if' clause used with 'target parallel' (PR95869)

2020-06-25  Tobias Burnus  <tobias@codesourcery.com>
    Kwok Cheung Yeung  <kcy@codesourery.com>

gcc/fortran/

PR fortran/95869
* trans-openmp.c (gfc_trans_omp_target): Use correct scoping block.

gcc/testsuite/

PR fortran/95869
* gfortran.dg/gomp/combined-if.f90 (test_target_parallel): Re-enable.
* gfortran.dg/gomp/pr95869.f90: New.
gcc/fortran/trans-openmp.c
gcc/testsuite/gfortran.dg/gomp/combined-if.f90
gcc/testsuite/gfortran.dg/gomp/pr95869.f90 [new file with mode: 0644]