https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77500
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue May 30 07:21:41 2017 New Revision: 248605 URL: https://gcc.gnu.org/viewcvs?rev=248605&root=gcc&view=rev Log: Backported from mainline 2016-09-08 Jakub Jelinek <ja...@redhat.com> 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. Added: branches/gcc-5-branch/gcc/testsuite/gfortran.dg/gomp/pr77500.f90 Modified: branches/gcc-5-branch/gcc/fortran/ChangeLog branches/gcc-5-branch/gcc/fortran/trans-openmp.c branches/gcc-5-branch/gcc/testsuite/ChangeLog