re PR fortran/84116 (ICE in gfc_match_omp_clauses, at fortran/openmp.c:1354)
authorJakub Jelinek <jakub@redhat.com>
Wed, 31 Jan 2018 20:47:48 +0000 (21:47 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 31 Jan 2018 20:47:48 +0000 (21:47 +0100)
commitc9243c043c06d0f8576ff4f76b92d41143d2fc2e
tree71764042a0b170dce07b1b4c90d2b1a9b9926e3b
parenteddd715c77c55f342e41419410fc577f71905800
re PR fortran/84116 (ICE in gfc_match_omp_clauses, at fortran/openmp.c:1354)

PR fortran/84116
* openmp.c (gfc_match_omp_clauses): If all the linear
gfc_match_omp_variable_list calls failed, don't gfc_free_omp_namelist
nor set *head = NULL.  Formatting fixes.

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

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