FX Coudert wrote:
C: integer overflow undefined, checking desirable at least for
debugging purposes.

I think latest Fortran is same as C, can someone confirm?

Yes, it is. Overflow undefined and no checking required; I think very few Fortran users actually use (or would use) checking on signed overflow.

But assuming the gcc is playing C-style games, it is probably a useful
thing to be able to verify that your code is free of such possibilities.

FX


Reply via email to