Uncaught type error for NIL as index argument to NTH on a &REST list

Bug #1741539 reported by Paul F. Dietz on 2018-01-05
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Undecided
Unassigned

Bug Description

 (lambda (&rest a) (lambda () (nth nil a)))

===>

The value
  NIL
is not of type
  NUMBER
when binding SB-KERNEL::X
   [Condition of type TYPE-ERROR]
[...]
  0: (SB-KERNEL:TWO-ARG-= NIL 0) [external]
  1: (SB-VM::GENERIC-=)
  2: ((SB-C:DEFTRANSFORM SB-C::%REST-REF) #<SB-C::COMBINATION :FUN #<SB-C::REF :LEAF #<SB-C::GLOBAL-VAR :%SOURCE-NAME SB-C::%REST-REF :TYPE #1=#<SB-KERNEL:FUN-TYPE #> :DEFINED-TYPE #1# :WHERE-FROM :DECLAR..
  3: (SB-C::IR1-TRANSFORM #<SB-C::COMBINATION :FUN #<SB-C::REF :LEAF #<SB-C::GLOBAL-VAR :%SOURCE-NAME SB-C::%REST-REF :TYPE #1=#<SB-KERNEL:FUN-TYPE #> :DEFINED-TYPE #1# :WHERE-FROM :DECLARED :KIND :GLOBAL..
[...]

Stas Boukarev (stassats) wrote :

IN c74d97b2fa360e0854576e05bc9aa4987940b5c8

Changed in sbcl:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers