PR fortran/84116
commitc0655a3ec04040b9f6bf5e7574c1e12848b93465
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 Jan 2018 20:47:48 +0000 (31 20:47 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 Jan 2018 20:47:48 +0000 (31 20:47 +0000)
tree71764042a0b170dce07b1b4c90d2b1a9b9926e3b
parent1d29f4ea088f5d6dd09f90b8fa51357eb42c663f
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.

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