Incorrect result from nested IF with comparisons

Bug #2006487 reported by Paul F. Dietz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

(defun bug125 (b)
  (declare
   (optimize (speed 2) (safety 1) (space 2)
             (compilation-speed 0) (debug 2)))
  (let ((v3 2301453501242805283))
    (if (< v3 b)
        (if (<= v3 b)
            1
            (block b3 b))
        (unless nil (when t (unless t 2))))))

(bug125 0) ==> 0 ;; should be NIL

x86-64, "2.3.1.58-9c154de5d"

description: updated
Stas Boukarev (stassats)
Changed in sbcl:
status: New → Fix Committed
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.