With sb-c::*constraint-propagate* bound to NIL, call to CHAR causes compiler error

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

Bug Description

 (let ((sb-c::*constraint-propagate* nil)) (compile nil '(lambda (p1) (declare (type simple-string p1)) (char p1 0))))

==>

full call to SB-KERNEL:DATA-NIL-VECTOR-REF
[...]
  0: (SB-INT:BUG "full call to ~S" SB-KERNEL:DATA-NIL-VECTOR-REF)
  1: (SB-C::PONDER-FULL-CALL #<SB-C::COMBINATION :FUN #<SB-C::REF :LEAF #<SB-C::GLOBAL-VAR :%SOURCE-NAME SB-KERNEL:DATA-NIL-VECTOR-REF :TYPE #1=#<SB-KERNEL:FUN-TYPE #> :DEFINED-TYPE #1# :WHERE-FROM :DECLA..
  2: (SB-C::IR2-CONVERT-FULL-CALL #<SB-C::COMBINATION :FUN #<SB-C::REF :LEAF #<SB-C::GLOBAL-VAR :%SOURCE-NAME SB-KERNEL:DATA-NIL-VECTOR-REF :TYPE #1=#<SB-KERNEL:FUN-TYPE #> :DEFINED-TYPE #1# :WHERE-FROM :..
  3: (SB-C::IR2-CONVERT-BLOCK #<SB-C::CBLOCK 7 :START c1 {100632A4A3}>)
[...]

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

Ok, that's more interesting, but probably doesn't need fixing either. We are relying on constraint propagation there to choose the right types.

Changed in sbcl:
status: New → Invalid
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.