Possible new bug

Jerry DeLisle jvdelisle@verizon.net
Sat Nov 25 09:20:00 GMT 2006


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



More information about the Fortran mailing list