bug in OF-TYPE in LOOP

Bug #540186 reported by Nikodemus Siivola on 2010-03-17
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Sent by Jianshi Huang to sbcl-bugs:

I'm using the latest SBCL.

CL-USER> (lisp-implementation-version)

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))


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 :


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