Incorrect value computed w. flet, logior, progv, values

Bug #2012851 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 b2 (b c)
  (declare
   (optimize (compilation-speed 3) (space 1)
             (debug 0) (safety 0) (speed 1)))
  (logior (progv '(*s1*) (list 0) c)
          (flet ((%f (x) (values 0 0)))
            (if t
                b
                (%f c)))))

(defun b2* ()
  (let ((vals '(-1 2)))
    (values (logior (cadr vals) (car vals))
            (apply #'b2 vals))))

(b2*) ==> -1, 2

x86-64, "2.3.2.113-d6dbe3db8"

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