Uncaught compiler error calling COUNT with improper list for second argument

Bug #1768270 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 () (count 'a '(a b c . d)))

==>

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

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

Backtrace:
  0: (LENGTH (A B C . D))
  1: (SB-C::SEQUENCE-LVAR-DIMENSIONS #<SB-C::LVAR 1 {100225A083}>)
  2: (SB-C::INDEX-INTO-SEQUENCE-DERIVE-TYPE #<SB-C::LVAR 1 {100225A083}> NIL NIL :INCLUSIVE T)
  3: (SB-C::COUNT-DERIVE-TYPE-OPTIMIZER #<SB-C::COMBINATION :FUN #<SB-C::REF :LEAF #<SB-C::GLOBAL-VAR :%SOURCE-NAME COUNT :TYPE #1=#<SB-KERNEL:FUN-TYPE #> :DEFINED-TYPE #1# :WHERE-FROM :DECLARED :KIND :GL..

This may be the same bug as for POSITION.

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