Question WRT gfortran.dg/allocatable_function_1.f90

Tobias Schlüter tobias.schlueter@physik.uni-muenchen.de
Mon Nov 27 19:34:00 GMT 2006


Erik,

thanks for looking into this.

erik.edelmann@iki.fi wrote on Sun, 26 Nov 2006:
> Wild guess: without -fbounds-check, gfortran calculates only the shape of
> the RHS and assumes that the shape of LHS is the same, but is using a more
> literal interpretation when -fbounds-check is used.

While this sounds like a perfectly reasonable explanation ...

> In the 'no -fbounds-check'-case we will have a problem if bar() has side
> effects, SAVEd variables etc.  In that case, calling bar() too few times
> may give wrong results.

... this sounds like a potentially ugly bug.  Do you think you can  
look into this further?

Thanks,
- Tobi

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the Fortran mailing list