re PR fortran/92756 (ICE in lower_omp, at omp-low.c:12988)
authorJakub Jelinek <jakub@redhat.com>
Wed, 4 Dec 2019 08:47:13 +0000 (09:47 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 4 Dec 2019 08:47:13 +0000 (09:47 +0100)
commita8a5f4cc04c802d74176f6935509b8a4303de399
treee1fbf1849c99714c9827523641f902da451ba489
parentc96828f1ec5bb54524697bd0f3fb22088fda5342
re PR fortran/92756 (ICE in lower_omp, at omp-low.c:12988)

PR fortran/92756
* trans-openmp.c (gfc_trans_omp_teams): Wrap OMP_TEAMS body into a
BIND_EXPR with a forced BLOCK.

* gfortran.dg/gomp/teams1.f90: New test.

* testsuite/libgomp.fortran/teams1.f90: New test.
* testsuite/libgomp.fortran/teams2.f90: New test.

From-SVN: r278956
gcc/fortran/ChangeLog
gcc/fortran/trans-openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/teams1.f90 [new file with mode: 0644]
libgomp/ChangeLog
libgomp/testsuite/libgomp.fortran/teams1.f90 [new file with mode: 0644]
libgomp/testsuite/libgomp.fortran/teams2.f90 [new file with mode: 0644]