Different MAKE-ARRAY const fold bug with improper dimensions list

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

Bug Description

This is a different error message than bug 1740784

(lambda () (make-array (list 'x) :element-type 'fixnum :initial-element 12))

==>

The value
  X
is not of type
  NUMBER
when binding SB-KERNEL::X
   [Condition of type TYPE-ERROR]
[...]
  0: (SB-KERNEL:TWO-ARG-+ X 0) [external]
  1: (SB-C::TRANSFORM-MAKE-ARRAY-VECTOR #<SB-C::LVAR 1 {1005697F03}> #<SB-C::LVAR 2 {10056E7F03}> #<SB-C::LVAR 3 {1005747FB3}> NIL #<SB-C::COMBINATION :FUN #<SB-C::REF :LEAF #<SB-C::GLOBAL-VAR :%SOURCE-NA..
  2: ((SB-C:DEFTRANSFORM MAKE-ARRAY) #<SB-C::COMBINATION :FUN #<SB-C::REF :LEAF #<SB-C::GLOBAL-VAR :%SOURCE-NAME MAKE-ARRAY :TYPE #1=#<SB-KERNEL:FUN-TYPE #> :DEFINED-TYPE #1# :WHERE-FROM :DECLARED :KIND :..
  3: (SB-C::IR1-TRANSFORM #<SB-C::COMBINATION :FUN #<SB-C::REF :LEAF #<SB-C::GLOBAL-VAR :%SOURCE-NAME MAKE-ARRAY :TYPE #1=#<SB-KERNEL:FUN-TYPE #> :DEFINED-TYPE #1# :WHERE-FROM :DECLARED :KIND :GLOBAL-FUNC..
[...]

Stas Boukarev (stassats) wrote :

In 0d50aa89ba4d8b56cdd8036af251f25345581588

Changed in sbcl:
status: New → Fix Committed
description: updated
Stas Boukarev (stassats) on 2018-01-31
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