mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-24 05:21:20 -08:00
Signal error on invalid constant type checking.
Side effet was SIGSEGV on compiled code.
This commit is contained in:
parent
bfc58c219e
commit
6dc40c869c
2 changed files with 27 additions and 4 deletions
|
|
@ -1182,3 +1182,19 @@
|
|||
(is-eql 10 (f2 10))
|
||||
(compile 'f2)
|
||||
(is-eql 10 (f2 10))))
|
||||
|
||||
;;; Date 2017-06-27
|
||||
;;; Reported by Fabrizio Fabbri
|
||||
;;; Description
|
||||
;;;
|
||||
;;; Compiled function drop argument type checkin
|
||||
;;; on constant.
|
||||
;;;
|
||||
;;; Bug https://gitlab.com/embeddable-common-lisp/ecl/issues/353
|
||||
(test cmp.0053.check-values-type-on-constant
|
||||
(handler-case
|
||||
(funcall (compile nil
|
||||
'(lambda () (rplaca 'A 1))))
|
||||
(simple-type-error () t)
|
||||
(error () nil)
|
||||
(:no-error (v) (declare (ignore v)) nil)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue