This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Functions result assigned to an array subscript which is also an input parameter


On Tue, Apr 11, 2006 at 05:08:09PM +0200, Philippe Schaffnit wrote:
> 
> Hi!
> 
> I've just spotted a very different behaviour between GFortan and the
> Lahey compiler: the later gives the output I expect without any warning
> of any kind (with all checks enabled), whereas GFortran surprises me a
> bit...
> 
> I think this is a bug, as this only happens with array subscripts, but
> this is so twisted that it might actually be OK...
> 
> Can anyone comment on that?

As far as I can see, the result from lahey is correct, and
gfortran is wrong (ifort also agrees with lahey).  Can you file a
bug report in Bugzilla, please?


        Erik


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]