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: Question WRT gfortran.dg/allocatable_function_1.f90


On Mon, Nov 27, 2006 at 06:11:12PM +0100, Tobias Schl?ter wrote:
> 
> 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?

I'll try to.


        Erik


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