[Bug fortran/60238] Allow colon-separated triplet in array initialization
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Mon Feb 17 11:25:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60238
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> as an alternative to the ugly
>
> indices = (/ (I, I=3, 5) /)
You can use
indices=[(I, I=3, 5)]
if your coding style accepts f2003 syntax.
> Supporting it would allow easier compiler interoperability.
The only way to achieve that is to stick to the Fortran standard, i.e, never
use extensions of any kind.
More information about the Gcc-bugs
mailing list