https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87725
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Thu Oct 25 07:56:55 2018 New Revision: 265479 URL: https://gcc.gnu.org/viewcvs?rev=265479&root=gcc&view=rev Log: PR fortran/87725 * openmp.c (gfc_match_omp_clauses): Parse simd, monotonic and nonmonotonic modifiers regardless of if they have been parsed already or if the opposite one has. Fix up check whether comma after modifier should be parsed. (resolve_omp_clauses): Diagnose schedule modifier restrictions. * c-c++-common/gomp/schedule-modifiers-1.c (bar): Separate modifier from kind with a colon rather than comma. * gfortran.dg/gomp/schedule-modifiers-1.f90: New test. * gfortran.dg/gomp/schedule-modifiers-2.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/gomp/schedule-modifiers-1.f90 trunk/gcc/testsuite/gfortran.dg/gomp/schedule-modifiers-2.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/openmp.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/c-c++-common/gomp/schedule-modifiers-1.c