WRITE compiler-macro clashes variables

Bug #581564 reported by Stas Boukarev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Medium
Unassigned

Bug Description

(funcall (compiler-macro-function 'write) '(write (1+ stream) :base 10) nil) =>

(LET ((*PRINT-BASE* 10) (STREAM *STANDARD-OUTPUT*))
  (SB-KERNEL:OUTPUT-OBJECT (1+ STREAM) STREAM))

Attached patch binds OBJECT variable to a form, and then calls OUTPUT-OBJECT on it.

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

WRITE-TO-STRING does the same. Attached a new patch, which fixes both.

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

#598374 bug contains a patch which fixes other problems with write compiler macros.

Changed in sbcl:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Nikodemus Siivola (nikodemus)
Revision history for this message
Nikodemus Siivola (nikodemus) wrote :

Thank you.

The WRITE bug has been fixed in 1.0.40.1, WRITE-TO-STRING issue in 1.0.42.4.

Changed in sbcl:
status: Confirmed → Fix Committed
assignee: Nikodemus Siivola (nikodemus) → nobody
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.