Skip to content

Failure to print floating-point-inexact exception

On OSX, with current HEAD (with arithmetic-error printer that disables exceptions),

(ext:with-float-traps-enabled (:inexact)
  (asinh least-positive-double-float))

Causes the following error message:

Unable to display error condition
   [Condition of type FLOATING-POINT-INEXACT]

Strangely, if I recompile the define-condition, the error is handled correctly:

Arithmetic error FLOATING-POINT-INEXACT signalled.
Operation was +, operands (1.7014118e38 1.0).
   [Condition of type FLOATING-POINT-INEXACT]