Empty VALUES place inside another VALUES place

Bug #1806478 reported by Paul F. Dietz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

Reading the standard, this should be ok:

(setf (values (values)) 1)

(and it should discard the value 1). Instead, this causes an error:

Execution of a form compiled with errors.
Form:
  (LET* ((NIL 1))
  (VALUES (VALUES)))
Compile-time error:
  NIL cannot be used as a local variable.
   [Condition of type SB-INT:COMPILED-PROGRAM-ERROR]

This fails similarly in CCL, but works in CLISP and ECL.

description: updated
description: updated
summary: - Empty VALUES place inside another VALUES places
+ Empty VALUES place inside another VALUES place
Revision history for this message
Paul F. Dietz (paul-f-dietz) wrote :

Patch for this bug.

Revision history for this message
Stas Boukarev (stassats) wrote :

b0864da4a91d06f99ae3325e45fd9d152d4dfd7b

Changed in sbcl:
status: New → Fix Committed
Changed in sbcl:
status: Fix Committed → Fix Released
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.