Deftransform for FORMAT does not accept non-simple strings

Bug #1747520 reported by Paul F. Dietz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Undecided
Unassigned

Bug Description

 (compile nil '(lambda () (format nil #.(make-array '(1) :element-type 'character :initial-element #\B :fill-pointer 1))))

==>

The value
  "B"
is not of type
  SIMPLE-STRING
when binding STRING
   [Condition of type TYPE-ERROR]
[...]
  0: (SB-FORMAT::TOKENIZE-CONTROL-STRING "B") [external]
  1: ((SB-C:DEFTRANSFORM FORMAT) #<SB-C::COMBINATION :FUN #<SB-C::REF :LEAF #<SB-C::GLOBAL-VAR :%SOURCE-NAME FORMAT :TYPE #1=#<SB-KERNEL:FUN-TYPE #> :DEFINED-TYPE #1# :WHERE-FROM :DECLARED :KIND :GLOBAL-F..
  2: (SB-C::IR1-TRANSFORM #<SB-C::COMBINATION :FUN #<SB-C::REF :LEAF #<SB-C::GLOBAL-VAR :%SOURCE-NAME FORMAT :TYPE #1=#<SB-KERNEL:FUN-TYPE #> :DEFINED-TYPE #1# :WHERE-FROM :DECLARED :KIND :GLOBAL-FUNCTION..
[...]

Revision history for this message
Stas Boukarev (stassats) wrote :

8b79f7d10e5e6e0a029b2cb01d85bb19d4f00f15

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.