Uncaught compiler error on call to MAKE-STRING-OUTPUT-STREAM with bad element-type

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

Bug Description

 (lambda () (make-string-output-stream :element-type '((x))))

==>

The value
  NIL
is not of type
  SB-KERNEL:CTYPE
when binding SB-KERNEL::TYPE1
   [Condition of type TYPE-ERROR]
[...]
  0: (SB-KERNEL:CSUBTYPEP NIL #<SB-KERNEL:CHARACTER-SET-TYPE CHARACTER>) [external]
  1: ((SB-C:DEFTRANSFORM MAKE-STRING-OUTPUT-STREAM) #<SB-C::COMBINATION :FUN #<SB-C::REF :LEAF #<SB-C::GLOBAL-VAR :%SOURCE-NAME MAKE-STRING-OUTPUT-STREAM :TYPE #1=#<SB-KERNEL:FUN-TYPE #> :DEFINED-TYPE #1#..
[...]

summary: - Uncaught compiler error on type-incorrect call to MAKE-STRING-OUTPUT-
- STREAM
+ Uncaught compiler error on call to MAKE-STRING-OUTPUT-STREAM with bad
+ element-type
Revision history for this message
Stas Boukarev (stassats) wrote :

62b07486d1e8be9460238829457ba06383426e2f

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.