xref not collected for initforms of DEFVAR/DEFPARAMETER

Bug #504492 reported by Tobias C. Rittweiler on 2010-01-07
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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
CL-USER> (sb-introspect:who-calls 'foo)
CL-USER> (sb-introspect:who-references '*bar*)

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) on 2013-04-16
Changed in sbcl:
assignee: nobody → David Vázquez (davazp)
Stas Boukarev (stassats) on 2016-02-29
Changed in sbcl:
assignee: David Vázquez (davazp) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers