2010-07-18 Paul Thomas <pault@gcc.gnu.org>
PR fortran/44353
* match.c (gfc_match_iterator): Remove error that iterator
cannot be INTENT(IN).
2010-07-18 Paul Thomas <pault@gcc.gnu.org>
PR fortran/44353
* gfortran.dg/data_implied_do_2.f03 : New test.
From-SVN: r162286
+2010-07-18 Paul Thomas <pault@gcc.gnu.org>
+
+ PR fortran/44353
+ * match.c (gfc_match_iterator): Remove error that iterator
+ cannot be INTENT(IN).
+
2010-07-17 Mikael Morin <mikael@gcc.gnu.org>
* trans-array.c (gfc_free_ss): Don't free beyond ss rank.
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;
+2010-07-18 Paul Thomas <pault@gcc.gnu.org>
+
+ PR fortran/44353
+ * gfortran.dg/data_implied_do_2.f03 : New test.
+
2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
* gcc.target/mips/cache-1.c: Allow 0 instead of 0x0.
--- /dev/null
+! { dg-do compile }
+! Tests the fix for PR44353
+!
+! Contributed by Vittorio Zecca <zeccav@gmail.com>
+!
+ subroutine sub(i)
+ intent(in) i
+ integer ii(10)
+ data (ii(i),i=1,10) /10*0/ ! failed here
+ end