Steel Bank Common Lisp

bug in OF-TYPE in LOOP

Reported by Nikodemus Siivola on 2010-03-17
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Medium
Unassigned

Bug Description

Sent by Jianshi Huang to sbcl-bugs:

I'm using the latest SBCL.

CL-USER> (lisp-implementation-version)
"1.0.36.25"

Here's the test case:

(defun foo (x)
 (loop for i from 0 below (length x)
       for vec of-type vector = (aref x i)
       collect vec))

Problem:

It cannot be compiled. And when I wanted to expand the loop form, an
error occurred and said:

VALUES type illegal in this context:
 *
  [Condition of type SIMPLE-ERROR]

I think it might be a bug of wrong expansion of type specifier in loop
otherwise there should be no * in the form.

Changed in sbcl:
status: New → Confirmed
importance: Undecided → Medium
status: Confirmed → In Progress
Nikodemus Siivola (nikodemus) wrote :

In SBCL 1.0.36.26.

Changed in sbcl:
status: In Progress → Fix Committed
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers