odd code deletion note from lambda as argument to a load-time function call
Bug #491256 reported by
Tobias C. Rittweiler
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Low
|
Douglas Katzman |
Bug Description
(defvar *foo*)
(defun bar (f)
(setf *foo* f))
(bar (formatter "~A"))
; compiling file "/tmp/foo.lisp" (written 02 DEC 2009 09:22:50 AM):
; file: /tmp/foo.lisp
; in: BAR (FORMATTER "~A")
; (BAR (FORMATTER "~A"))
;
; note: deleting unreachable code
;
; compilation unit finished
; printed 1 note
; /tmp/foo.fasl written
; compilation finished in 0:00:00.009
tags: | added: deletion-note |
To post a comment you must log in.
Must have something to do with the way the FOP compiler arranges
toplevel calls?
(defvar *foo*)
(defun bar (f)
(setf *foo* f))
(unless *foo* (bar (formatter "~A"))) ;;; => no note