mv-call and a declaration on &rest

Bug #1632834 reported by Stas Boukarev
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Triaged
Low
Unassigned

Bug Description

(funcall (compile nil `(lambda (list)
                         (multiple-value-call
                             (lambda (&optional a &rest r)
                               (declare (cons r)
                                        (ignore r))
                               (list a))
                           (values-list list))))
         '(1 2))

Value of NIL in
#'(LAMBDA (&OPTIONAL A &REST R)
    (DECLARE (CONS R)
             (IGNORE R))
    (LIST A))

is
  NIL,
not a
  CONS.

Tags: compiler
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.