------- 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