OSDN Git Service

2010-07-19 Paul Thomas <pault@gcc.gnu.org>
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jul 2010 05:05:23 +0000 (05:05 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Jul 2010 05:05:23 +0000 (05:05 +0000)
PR fortran/44353
* match.c (gfc_match_iterator): Revert.

2010-07-19  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/44353
* gfortran.dg/data_implied_do_2.f03 : Remove.

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

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

index 48144b0..a903c8a 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-19  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/44353
+       * match.c (gfc_match_iterator): Reverted.
+
 2010-07-18  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/44353
index 3761261..56e9d1d 100644 (file)
@@ -978,6 +978,13 @@ gfc_match_iterator (gfc_iterator *iter, int init_flag)
       goto cleanup;
     }
 
+  if (var->symtree->n.sym->attr.intent == INTENT_IN)
+    {
+      gfc_error ("Loop variable '%s' at %C cannot be INTENT(IN)",
+                var->symtree->n.sym->name);
+      goto cleanup;
+    }
+
   gfc_match_char ('=');
 
   var->symtree->n.sym->attr.implied_index = 1;
index 7cf7beb..73fb7b7 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-19  Paul Thomas  <pault@gcc.gnu.org>
+
+       PR fortran/44353
+       * gfortran.dg/data_implied_do_2.f03 : Removed.
+
 2010-07-18  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/44353