re PR fortran/77765 (ICE in gfc_match_oacc_routine, at fortran/openmp.c:1781)
authorCesar Philippidis <cesar@codesourcery.com>
Thu, 29 Jun 2017 19:03:43 +0000 (12:03 -0700)
committerCesar Philippidis <cesar@gcc.gnu.org>
Thu, 29 Jun 2017 19:03:43 +0000 (12:03 -0700)
commit74582a3e2e01068437410fb75f2f9282ee4923e3
treeff42cdef52ef1d60ee4f502bc798e030fc351df5
parent6da4066f343f133670c07cbb199527f549fd261f
re PR fortran/77765 (ICE in gfc_match_oacc_routine, at fortran/openmp.c:1781)

PR fortran/77765

gcc/fortran/
* openmp.c (gfc_match_oacc_routine): Check if proc_name exist before
comparing the routine name against it.

gcc/testsuite/
* gfortran.dg/goacc/pr77765.f90: New test.

From-SVN: r249809
gcc/fortran/ChangeLog
gcc/fortran/openmp.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/goacc/pr77765.f90 [new file with mode: 0644]