[Bug fortran/60238] New: Allow colon-separated triplet in array initialization
antony at cosmologist dot info
gcc-bugzilla@gcc.gnu.org
Mon Feb 17 11:10:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60238
Bug ID: 60238
Summary: Allow colon-separated triplet in array initialization
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: antony at cosmologist dot info
Not really a bug, but ifort (and also going back, CVF) allow a clean array
initialization sytnax like this
integer :: indices(3)
indices=[3:5]
as an alternative to the ugly
indices = (/ (I, I=3, 5) /)
Supporting it would allow easier compiler interoperability.
More information about the Gcc-bugs
mailing list