SORT return value lost with (space 0) on specialized vectors

Bug #2067352 reported by Eric Marsden
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

Hi,

From random-integer testing on Linux/AMD64:

* (lisp-implementation-version)
"2.4.4.142-065494fec"
* (defun foobles (a)
    (declare (optimize (speed 2) (space 0)) ; (space 0) important
             (type (vector (unsigned-byte 7)) a)) ; fails for all sorts of specialized vectors
    (sort a #'<))
* (foobles (coerce (vector 1 2) '(vector (unsigned-byte 7))))
NIL ; <-- expecting #(1 2)

(sbcl-devel is refusing my emails but I see that the issue has been reported)

Stas Boukarev (stassats)
Changed in sbcl:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.