PR fortran/77500
commita34338c90fa38c45b84f591e2110c7792ad953bb
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Sep 2016 12:19:21 +0000 (8 12:19 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Sep 2016 12:19:21 +0000 (8 12:19 +0000)
treeb1d8b8516958e62a4a514a5777a0d8fa0db25594
parent51688bb79217bffd773143e1f8cb00a54b738bb8
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240038 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/gomp/pr77500.f90 [new file with mode: 0644]