OSDN Git Service

2010-06-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
authorjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jun 2010 04:42:41 +0000 (04:42 +0000)
committerjvdelisle <jvdelisle@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Jun 2010 04:42:41 +0000 (04:42 +0000)
PR fortran/44371
* match.c (gfc_match_stopcode): Move gfc_match_eos call inside
condition block.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160133 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fortran/ChangeLog
gcc/fortran/match.c

index 66bdbe6..80f78c1 100644 (file)
@@ -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-
index 7e13ba3..2cbac02 100644 (file)
@@ -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))
     {