Fortran · Runtime error

Error 70: Integer overflow

What does Error 70: Integer overflow mean in Fortran?

An integer arithmetic operation produced a result too large for the variable's declared integer kind.

Error 70: Integer overflowIntel Fortran · gfortran

Condition

An integer arithmetic operation produced a result too large for the variable's declared integer kind.

Fix

Check the largest value the calculation can legitimately produce against the range of the integer kind in use, and consider a wider kind (INTEGER(8)) if the default 32-bit range is not enough.

Pending source verification. Not yet checked against official documentation.

Related runtime error