------- Comment #2 from burnus at gcc dot gnu dot org 2010-04-22 13:29 ------- Forgot to mention that one can then also print the exception status:
"8.4 STOP and ERROR STOP statements" (F2008 FDIS): "If any exception (cf. 14 Exceptions and IEEE arithmetic) is signaling on that image, the processor shall issue a warning indicating which exceptions are signaling; this warning shall be on the unit identified by the named constant ERROR_UNIT (13.8.2.8). It is recommended that the stop code is made available by formatted output to the same unit." -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43849