Fortran · Runtime error

Error 71: Integer divide by zero

What does Error 71: Integer divide by zero mean in Fortran?

An integer division operation attempted to divide by zero.

Error 71: Integer divide by zeroIntel Fortran · gfortran

Condition

An integer division operation attempted to divide by zero.

Fix

Add an explicit check for a zero divisor before the division. Integer division by zero is not trapped as a floating-point exception, so compiler flags for floating-point traps will not catch it; the check has to be in the code.

Pending source verification. Not yet checked against official documentation.

Related runtime error