NTH-VALUE fails on bignum

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

Bug Description

 (eval '(NTH-VALUE 6043766848947875297 NIL))

==>

Value of 6043766848947875297 in
(THE SB-INT:INDEX 6043766848947875297)
is
  6043766848947875297,
not a
  (MOD 4611686018427387901).
   [Condition of type SIMPLE-TYPE-ERROR]

Restarts:
 0: [ABORT] Exit debugger, returning to top level.

Backtrace:
  0: (SB-C::%COMPILE-TIME-TYPE-ERROR (6043766848947875297) (MOD 4611686018427387901) #<unused argument> (6043766848947875297) "(THE SB-INT:INDEX 6043766848947875297)" NIL)
  1: ((LAMBDA ()))
  2: (SB-INT:SIMPLE-EVAL-IN-LEXENV (NTH-VALUE 6043766848947875297 NIL) #<NULL-LEXENV>)
  3: (EVAL (NTH-VALUE 6043766848947875297 NIL))

Revision history for this message
Paul F. Dietz (paul-f-dietz) wrote :

Test was inspired by discussion on #sbcl; may be related.

Revision history for this message
Paul F. Dietz (paul-f-dietz) wrote :

Still occurs after 3604b1.

Revision history for this message
Paul F. Dietz (paul-f-dietz) wrote :

This test is bogus, since the arg is > multiple-values-limit.

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