Incorrect report of invalid number of arguments

Bug #1721569 reported by Paul F. Dietz on 2017-10-05
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Found with the random tester. Note that (* 9 b) is not a fixnum.

(defun t12 (b)
  (declare (type (integer -3755795408964870057 -3391381516052960895) b))
  (declare (optimize (speed 1) (safety 1) (compilation-speed 3)
       (space 3) (debug 0)))
  (ldb (byte 22 10) (the integer (* 9 b))))

(defun t12test ()
  (funcall #'t12 -3643840172908896850))

;; (t12test) ==> invalid number of arguments: -3643840172908896850

summary: - Value of expression becomes confused with number of arguments
+ Incorrect report of invalid number of arguments
Stas Boukarev (stassats) wrote :


Changed in sbcl:
status: New → Fix Committed
Stas Boukarev (stassats) on 2017-10-31
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers