Lisp HUG Maillist Archive

compiler bug (LWw)

Hello,

The execution of the following compiled function

(defun test ()
  (declare (optimize (safety 1)))
  (let ((str (make-string 1)))
    (setf (schar str 0) #\Space)
    str))

gives an error if safety is declared to be 1. And no error with any other value of safety (LWw).

USER 27 > (test)

Error: #\Space is not of type base-char.
  1 (abort) Return to level 0.
  2 Return to top loop level 0.

Regards,

Francis


Re: compiler bug (LWw)

Unable to parse email body. Email id is 8344

Updated at: 2020-12-10 08:42 UTC