Bad code deletion note inside LOOP stepping clauses
Bug #998946 reported by
Stas Boukarev
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Triaged
|
Low
|
Unassigned |
Bug Description
(defun foo (object)
(if (consp object)
(loop for cdr = object then (cdr cdr)
for car = (if (consp cdr)
for i = 1 then (1+ i)
while cdr
do (print (list i car)))))
complains about the second leg of IF, since i variable has both initial and THEN clauses, car variable handling is compiled in two pieces to. And when it's initialized the type of cdr is know to be a cons.
tags: | added: deletion-note |
To post a comment you must log in.
this seems to have been fixed meanwhile.
C-c C-c'ing it in slime doesn't give me any notes/warnings.
> (lisp-implement ation-version)
"1.3.8. 46.hu.dwim. 4-da817a7"