type inference does not complain about DOLIST over a vector type
Bug #1908819 reported by
Michael Fiano
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
(in-package #:cl-user)
(declaim (ftype (function () list) foo))
(defun foo ()
(declare (optimize speed))
(let ((items (vector 1 2 3 4))
(result nil))
;; type inference never catches that ITEMS is not a list and falls through
;; to a runtime error instead of compile-time.
(dolist (item items)
(push item result))
result))
description: | updated |
Changed in sbcl: | |
assignee: | nobody → Stas Boukarev (stassats) |
Changed in sbcl: | |
status: | New → Fix Committed |
assignee: | Stas Boukarev (stassats) → nobody |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.