re PR fortran/77500 (ICE in gfc_trans_omp_atomic, at fortran/trans-openmp.c:2822)
authorJakub Jelinek <jakub@redhat.com>
Thu, 8 Sep 2016 12:19:21 +0000 (14:19 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 8 Sep 2016 12:19:21 +0000 (14:19 +0200)
commit20b6cf0194331045a8afa61ebf6432bb18f1ae87
treeb1d8b8516958e62a4a514a5777a0d8fa0db25594
parent8ebc1e0f8ee2e46d3dfc27a4b9a339074378d883
re PR fortran/77500 (ICE in gfc_trans_omp_atomic, at fortran/trans-openmp.c:2822)

PR fortran/77500
* trans-openmp.c (gfc_trans_omp_atomic): For atomic write or
swap, don't try to look through GFC_ISYM_CONVERSION.  In other cases,
check that value.function.isym is non-NULL before dereferencing it.

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

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