https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80442
Bug ID: 80442 Summary: Rejects DATA statement with array slice Product: gcc Version: 7.0.1 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: fortran Assignee: koenigni at gcc dot gnu.org Reporter: koenigni at gcc dot gnu.org Target Milestone: --- The following code is rejected, even though it is, as far as I can see, valid Fortran. $ cat test.f90 program main implicit none integer:: i integer, dimension(4):: j data (j(i:i), i=1,4) /1, 2, 3, 4/ end program $ gfortran test.f90 test.f90:5:10: data (j(i:i), i=1,4) /1, 2, 3, 4/ 1 Error: Data element below array lower bound at (1)