This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Possible new bug


Hi folks,

Ifort accepts this. Gfortran rejects it.

real :: a(5,5)
integer :: i, j
data ((a(i,j),i=1,j), j=1,5) /15*3.8/
print '(5f5.2)', a
end

$ gfc test7.f90
test7.f90:3.18:

data ((a(i,j),i=1,j), j=1,5) /15*3.8/
1
Error: Parameter 'j' at (1) has not been declared or is a variable, which does not reduce to a constant expression



Should I file a PR on this?


Jerry


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]