[Bug fortran/16206] rejects valid array initialization expression
anlauf at gmx dot de
gcc-bugzilla@gcc.gnu.org
Fri Jun 16 08:28:00 GMT 2006
------- Comment #8 from anlauf at gmx dot de 2006-06-16 08:23 -------
(In reply to comment #7)
Paul,
thanks for looking into this!
> program gfortran_bug2
[...]
> integer, parameter :: m(4) = (/1,2,3,4/)
You might wish to extend this to m(5) = ..., because:
> integer, parameter :: p(8) = (/(m(i:i+1), i = 1,4)/)
the last accessed element is m(5).
Cheers,
-ha
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16206
More information about the Gcc-bugs
mailing list