Fortran Programming Guide

Retrospective Summary

The ieee_retrospective function queries the floating-point status registers to find out which exceptions have accrued and a message is printed to standard error to inform you which exceptions were raised but not cleared. This function is automatically called by Fortran 77 programs at normal program termination (CALL EXIT). The message typically looks like this; the format may vary with each compiler release:


Note: IEEE floating-point exception flags raised: 
    Division by Zero; 
IEEE floating-point exception traps enabled: 
    inexact;  underflow;  overflow;  invalid operation; 
See the Numerical Computation Guide, ieee_flags(3M),  
    ieee_handler(3M)

Fortran 90 programs do not call ieee_retrospective automatically. A Fortran 90 program would need to call ieee_retrospective explicitly (and link with -lf77compat).