Multiple values declarations with THE are ignored

Bug #938404 reported by Gustavo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Invalid
Undecided
Unassigned

Bug Description

Declarations of the type (the (values ...) ...) are not checked. For instance, no error is given in this call:

CL-USER> (defun frob ()
           (declare (optimize safety (speed 0)))
           (multiple-value-call
               #'+ (the (values integer list) (values 1 2))))
FROB
CL-USER> (frob)
3

Although that is not against the spec, SBCL should be able to detect it.

Tags: types
Gustavo (gugamilare)
tags: added: types
Revision history for this message
Stas Boukarev (stassats) wrote :

Can't reproduce, gives a compile-time warning and a run-time error.

Changed in sbcl:
status: New → Invalid
Revision history for this message
Gustavo (gugamilare) wrote :

Sorry, my bad. That bug was introduced by myself in my attempt to address bug 722552, not sure how.

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.