jcv@uts.amdahl.com (Jim Veroulis) (04/04/89)
I'm interested in knowing how various Fortran implementations handle overflow. I can't seem to find anything in the Standard which addresses the situation, so I would imagine that anything goes but I would be interested in knowing how a "good" compiler might handle it. A simple example would be: integer i, MAXINT MAXINT = 2147483647 i = MAXINT + 1 print *, i end This of course assumes that the largest integer representable is MAXINT. Of the implementations I've seen, the addition simply causes a wrap around to the maximum negative integer -2147483648. Please respond by e-mail and I'll summarize to the net. Jim Veroulis Amdahl Corporation jcv@uts.amdahl.com UUCPnet: {decwrl,sun,uunet}!amdahl!jcv