This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/16206] rejects valid array initialization expression
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2006 08:23:03 -0000
- Subject: [Bug fortran/16206] rejects valid array initialization expression
- References: <bug-16206-6318@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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