https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78676
--- Comment #3 from Andrew Pinski ---
Try -fwrapv .
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78676
--- Comment #2 from mecej4 at operamail dot com ---
(In reply to Andrew Pinski from comment #1)
> This sounds like overflows are happening. Overflow in fortran is undefined.
Very much so, but integer overflow happens a lot in random number genera
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78676
--- Comment #1 from Andrew Pinski ---
This sounds like overflows are happening. Overflow in fortran is undefined.