Printer for LET invokes sharing printing for NIL when *PRINT-CIRCLE* and *PRINT-PRETTY* are true

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

Bug Description

(in-package :cl-user)

(with-standard-io-syntax (let ((*print-pretty* t) (*print-circle* t)) (print '(let () (let () x))) (values)))

>> (LET #1=()
    (LET #1#
      X))

This does not happen if LET is replaced by a random symbol:

(with-standard-io-syntax (let ((*print-pretty* t) (*print-circle* t)) (print '(f () (f () x))) (values)))

>> (F NIL (F NIL X))

It does happen with some other standardized symbols (LET*, DOTIMES, PROG, for example).

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

Patch to fix the bug (ignore circularity detection on NIL).

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

9432d0bf9b614e30de564bcd8e71e796b9b05f53

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.