optimisation of overflowing integers

N.M. Maclaren nmm1@cam.ac.uk
Mon Mar 17 17:46:00 GMT 2014


On Mar 17 2014, Steve Kargl wrote:
>On Mon, Mar 17, 2014 at 04:22:02PM +0100, Davide Mancusi wrote:
>>
>> I was mildly shocked by the result of gfortran's optimisation.
>
>I'm mildly shocked that someone relying on processor dependent
>behavior is mildly shcokced when the program doesn't do what is
>desired.

Actually, it's not even that - it's plain undefined.  All bets are
off, and you should expect the worst.

Regards,
Nick Maclaren.



More information about the Fortran mailing list