STRING/= gives incorrect result on string w. fill pointer, with declaration

Bug #1790717 reported by Paul F. Dietz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

(defun f302 (P2)
  (declare (optimize (speed 3) )
           (type (array * (7)) p2))
  (string/= "" p2))

(f302 (make-array '(7) :fill-pointer 0 :element-type 'base-char)) ==> 0

(string/= "" (make-array '(7) :fill-pointer 0 :element-type 'base-char)) ==> NIL

Similar failure for STRING=

description: updated
Revision history for this message
Stas Boukarev (stassats) wrote :

c08c891c933058bc704383d24a854dcac421511a

Changed in sbcl:
status: New → Fix Committed
Changed in sbcl:
status: Fix Committed → 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.