xref not collected for initforms of DEFVAR/DEFPARAMETER

Bug #504492 reported by Tobias C. Rittweiler
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SBCL
Confirmed
Medium
Unassigned

Bug Description

;;; quux.lisp

(defun foo (x) (1+ x))
(defvar *bar* (foo 42))
(defparameter *quux* *bar*)

CL-USER> (load (compile-file "/tmp/quux.lisp"))
; compiling file "/tmp/quux.lisp" (written 07 JAN 2010 11:57:59 PM):
; compiling (DEFUN FOO ...)
; compiling (DEFVAR *BAR* ...)
; compiling (DEFPARAMETER *QUUX* ...)

; /tmp/quux.fasl written
; compilation finished in 0:00:00.005
T
CL-USER> (sb-introspect:who-calls 'foo)
NIL
CL-USER> (sb-introspect:who-references '*bar*)
NIL

This has not only the obvious consequences to inaccuracy of M-? in Slime,
but also the SB-COVER contrib is affected:

It won't show function definitions as having been executed that were only
called once in an DEFVAR or DEFPARAMETER initform.

Changed in sbcl:
status: New → Confirmed
importance: Undecided → Medium
David Vázquez (davazp)
Changed in sbcl:
assignee: nobody → David Vázquez (davazp)
Stas Boukarev (stassats)
Changed in sbcl:
assignee: David Vázquez (davazp) → nobody
Revision history for this message
Carl Gay (cgay) wrote :
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.