Incorrect value with MULTIPLE-VALUE-BIND, IF

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

Bug Description

(defparameter *f358*
  '(let* ((v8 c) (v1 e))
      (multiple-value-bind (v9 v6 v5)
          (if (/= a c)
              (values v8 10983313414045189807 a)
              (values 0 c 0))
        (boole boole-orc1 (eval v6)
               (let ((*s9* (progv '(*s5*) (list 0) 0)))
                 0))
        v6)))

(defun f358 ()
  (let* ((vals '(0 571816791704489 1))
         (vars '(a c e))
         (opt-form
          `(lambda ,vars
             (declare (type (integer 546181490258163 937632934000433) c))
             (declare (ignorable a c e))
             ,*f358*))
         (unopt-form
          `(lambda ,vars
             ,*f358*)))
    (values
     (apply (compile nil opt-form) vals)
     (apply (compile nil unopt-form) vals))))

(f358) ==> 4611686018427387904, 10983313414045189807

Revision history for this message
Paul F. Dietz (paul-f-dietz) wrote :

In the above, *s9* and *s5* are declared special.

Revision history for this message
Stas Boukarev (stassats) wrote :

60ab0763b70b628b21e74d8c6a7e5b479fc61363

Changed in sbcl:
status: New → Fix Committed
Stas Boukarev (stassats)
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.