|
[Sbcl-commits] CVS: sbcl/tests defstruct.impure.lisp,1.32,1.33
From: Nikodemus Siivola <demoss@us...> - 2008-07-22 17:17
|
Update of /cvsroot/sbcl/sbcl/tests
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv17508/tests
Modified Files:
defstruct.impure.lisp
Log Message:
1.0.18.27: fix DEFSTRUCT compilation when init-form type is vague
* Reported by Josh Morrison. Regression from the recent DEFSTRUCT
constructor hacking.
Slots initialized by constructor lambda-list arguments have their
types checked, but those slots always initialized directly by the
initform values did not -- wrap the DSD-DEFAULT in a THE.
Index: defstruct.impure.lisp
===================================================================
RCS file: /cvsroot/sbcl/sbcl/tests/defstruct.impure.lisp,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- defstruct.impure.lisp 28 May 2008 22:32:28 -0000 1.32
+++ defstruct.impure.lisp 22 Jul 2008 17:17:17 -0000 1.33
@@ -737,3 +737,8 @@
(assert (eql #c(5.0 5.0) (constant-arg-inits-f foo)))
(assert (eql #c(6.0d0 6.0d0) (constant-arg-inits-g foo)))))
(make-constant-arg-inits)
+
+;;; bug reported by John Morrison, 2008-07-22 on sbcl-devel
+(defstruct (raw-slot-struct-with-unknown-init (:constructor make-raw-slot-struct-with-unknown-init ()))
+ (x (#:unknown-function) :type double-float))
+
|
| Thread | Author | Date |
|---|---|---|
| [Sbcl-commits] CVS: sbcl/tests defstruct.impure.lisp,1.32,1.33 | Nikodemus Siivola <demoss@us...> |