Improper array element type from MAKE-ARRAY

Bug #1392068 reported by Paul F. Dietz on 2014-11-12
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Undecided
Unassigned

Bug Description

* (make-array 2 :element-type 'base-char :initial-element #\a)

"aa"
* (make-array 2 :element-type '(member #\a #\b) :initial-element #\b)

#(#\b #\b)
* (array-element-type *)

T
* (upgraded-array-element-type '(member #\a #\b))

BASE-CHAR
*

MAKE-ARRAY should follow the array upgrading behavior indicated by UPGRADED-ARRAY-ELEMENT-TYPE, but it fails to do so in this case.

Found in sbcl 1.2.5 by random-type-prop tests.

Stas Boukarev (stassats) wrote :

In 881c9c6e8eded353559290d57f132593c4035cd0.

Changed in sbcl:
status: New → Fix Committed
Stas Boukarev (stassats) wrote :

Make that 1b63a1663243851c3cfa6162dffb35f3b1638cf5.

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