style-warning hides warnings when compiling write-string

Bug #573956 reported by Roman Marynchak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Invalid
Undecided
Unassigned

Bug Description

Surprisingly, the following garbage gets compiled with only a style warning:

* (defun cc() (write-string 1 2 3 4 5 6 7 8 9 10 11))
; in: LAMBDA NIL
; (WRITE-STRING 1 2 3 4 5 6 7 8 9 10 11)
;
; caught STYLE-WARNING:
; The function has an odd number of arguments in the keyword portion.
;
; compilation unit finished
; caught 1 STYLE-WARNING condition

However, the smaller garbage

* (defun k() (write-string 1 2))
; in: LAMBDA NIL
; (WRITE-STRING 1 2)
;
; caught WARNING:
; Asserted type STRING conflicts with derived type
; (VALUES (INTEGER 1 1) &OPTIONAL).
; See also:
; The SBCL Manual, Node "Handling of Types"
;
; compilation unit finished
; caught 1 WARNING condition

emits a full warning.

Also, the warning about too many arguments should be present.

Regards,
Roman

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.