NTH-VALUE fails on bignum

Bug #1737621 reported by Paul F. Dietz on 2017-12-11
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
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))

Paul F. Dietz (paul-f-dietz) wrote :

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

Paul F. Dietz (paul-f-dietz) wrote :

Still occurs after 3604b1.

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  Edit
Everyone can see this information.

Other bug subscribers