------- Comment #1 from pault at gcc dot gnu dot org 2010-06-01 04:51 ------- Other compilers produce the expected result, whereas gfortran gives:
pr44353.f90:4.19: data (ii(i),i=1,10) /10*1/ ! here the scope of i is the data statement 1 Error: Loop variable 'i' at (1) cannot be INTENT(IN) Removing the error at match.c:981 makes gfortran behave as the other compilers. In addition, I cannot find any such constraint in the standard. Execution of a data-implied-do is the same as a DO and so the scope of the loop variable is local to the data statement. Given all this, I would say confirmed. I will regtest the fix a bit later on. Paul -- pault at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2010-06-01 04:51:22 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44353