[Bug fortran/16206] rejects valid array initialization expression
paulthomas2 at wanadoo dot fr
gcc-bugzilla@gcc.gnu.org
Fri Jun 16 16:24:00 GMT 2006
------- Comment #9 from paulthomas2 at wanadoo dot fr 2006-06-16 16:18 -------
Subject: Re: rejects valid array initialization expression
Harald,
>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).
>
>
This lost me a couple of evenings because it kept segfaulting on the
out-of bounds reference! I thought that it was something wrong with the
logic of the patch..... *groan*. I have put bounds checking in there
now and will likely submit tomorrow or Sunday morning. gfortran now
does more with initializers than any other compiler that I can lay hands on.
Thanks
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16206
More information about the Gcc-bugs
mailing list