Uncaught compiler error calling POSITION with improper list for second argument

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

Bug Description

(lambda () (position 0 '(1 2 0 5 . 5)))

==>

The value
  5
is not of type
  LIST
   [Condition of type TYPE-ERROR]

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

Backtrace:
  0: (LENGTH (1 2 0 5 . 5))
  1: (SB-C::SEQUENCE-LVAR-DIMENSIONS #<SB-C::LVAR 1 {100F3F8003}>)
  2: (SB-C::INDEX-INTO-SEQUENCE-DERIVE-TYPE #<SB-C::LVAR 1 {100F3F8003}> NIL NIL :INCLUSIVE NIL)
  3: (SB-C::POSITION-DERIVE-TYPE-OPTIMIZER #<SB-C::COMBINATION :FUN #<SB-C::REF :LEAF #<SB-C::GLOBAL-VAR :%SOURCE-NAME POSITION :TYPE #1=#<SB-KERNEL:FUN-TYPE #> :DEFINED-TYPE #1# :WHERE-FROM :DECLARED :KI..

Stas Boukarev (stassats) wrote :

9637f2c56c088731493ab15755d54f9e838aa3b3

Changed in sbcl:
status: New → Fix Committed
Stas Boukarev (stassats) on 2018-05-29
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers