This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Functions result assigned to an array subscript which is also an input parameter
- From: Erik Edelmann <erik dot edelmann at iki dot fi>
- To: Philippe Schaffnit <P dot Schaffnit at access dot rwth-aachen dot de>
- Cc: GFortran <fortran at gcc dot gnu dot org>
- Date: Tue, 11 Apr 2006 20:11:30 +0300
- Subject: Re: Functions result assigned to an array subscript which is also an input parameter
- References: <443BC659.94BEB4C9@access.rwth-aachen.de>
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