0.8.2.13:
authorChristophe Rhodes <csr21@cam.ac.uk>
Sat, 2 Aug 2003 15:58:06 +0000 (15:58 +0000)
committerChristophe Rhodes <csr21@cam.ac.uk>
Sat, 2 Aug 2003 15:58:06 +0000 (15:58 +0000)
Fix an error in the recent array-type refactoring; type checks
on vectors were incorrectly reported (as "unbound variable
SAETP" rather than a type error).

src/code/interr.lisp
tests/seq.impure.lisp
version.lisp-expr

index 41247c1..2ca9050 100644 (file)
                              (object)
                      (error 'type-error
                             :datum object
-                            :expected-type `(simple-array
+                            :expected-type '(simple-array
                                              ,(sb!vm:saetp-specifier saetp)
                                              (*)))))
                  sb!vm:*specialized-array-element-type-properties*))))
index b298f78..3470c35 100644 (file)
   (declare (optimize (safety 3)))
   (assert (raises-error? (elt (list 1 2 3) 3) type-error)))
 \f
+;;; confusion in the refactoring led to this signalling an unbound
+;;; variable, not a type error.
+(defun svrefalike (x)
+  (svref x 0))
+(assert (raises-error? (svrefalike #*0) type-error))
+\f
 ;;; checks for uniform bounding index handling under SAFETY 3 code.
 ;;;
 ;;; KLUDGE: not all in one big form because that causes SBCL to spend
index 38b4159..99c8197 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.8.2.12"
+"0.8.2.13"