Incorrect value with nested bindings of a special variable

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

Bug Description

(declaim (special *s7*))

(defun f329 (c)
  (let ((*s7* 1))
    (gcd
     (let ((*s7* c))
       *s7*)
     *s7*)))

(f329 17) ==> 17 ; should be 1

x86-64, "2.4.1.222-af373d354"

Stas Boukarev (stassats)
Changed in sbcl:
status: New → Fix Released
Revision history for this message
Paul F. Dietz (paul-f-dietz) wrote :

That also fixed this bug:

(defun f330 (a)
  (logxor (unwind-protect a (setq a 7)) a))

(f330 0) ==> 0 ; should be 7

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.