This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Possible new bug
- From: Jerry DeLisle <jvdelisle at verizon dot net>
- To: Fortran List <fortran at gcc dot gnu dot org>
- Date: Sat, 25 Nov 2006 00:24:39 -0800
- Subject: 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