diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 66bdbe66d21e34058eab9aa1cbbfc6fdff8d543a..80f78c12a6d62981a2919788bac511805d6e4a3b 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2010-06-01 Jerry DeLisle <jvdelisle@gcc.gnu.org> + + PR fortran/44371 + * match.c (gfc_match_stopcode): Move gfc_match_eos call inside + condition block. + 2010-05-31 Steven G. Kargl <kargl@gcc.gnu.org> * fortran/gfortran.texi: Fix typos in description of variable-format- diff --git a/gcc/fortran/match.c b/gcc/fortran/match.c index 7e13ba3b96abab1261089b4d826e4994bbade0dc..2cbac0200fdf235eb6e5c45cbe8f2ca91d44c8f0 100644 --- a/gcc/fortran/match.c +++ b/gcc/fortran/match.c @@ -2018,10 +2018,10 @@ gfc_match_stopcode (gfc_statement st) goto cleanup; if (m == MATCH_NO) goto syntax; - } - if (gfc_match_eos () != MATCH_YES) - goto syntax; + if (gfc_match_eos () != MATCH_YES) + goto syntax; + } if (gfc_pure (NULL)) {