I am using ifort (IFORT) 13.1.1 20130313 under Red Hat Enterprise Linux 5.3. The target program was compiled using the following options:
-O2 -fpe0 -extend-source 132 -save -zero -traceback -diag-disable 8290,8291
The target program is generating a "forrtl: error (65): floating invalid" error message. We have traced the problem to a division by zero error on a line of code above the line number provided by the compiler traceback. Why is the compiler not flagging this error as a divisoin by zero error and stopping on the correct line? Our understanding is the -fpe0 option should behave as follows: Underflow gives 0.0; trap on other IEEE exceptions.
The compiler should have generate a "error (73): Floating divide by zero" message.
Here is the source that triggered the error and the values:
A = B / C where
B= 0.00000000000000000000 C=0.00000000000000000000