define-condition/report style warnings

Bug #896379 reported by sds
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
Medium
Unassigned

Bug Description

compiling this:

(define-condition code (error)
  ((proc :reader code-proc :initarg :proc :initform nil)
   (mesg :type (or null simple-string) :reader code-mesg
         :initarg :mesg :initform nil)
   (args :type list :reader code-args :initarg :args :initform nil))
  (:documentation "An error in the user code.")
  (:report (lambda (cc out)
             (declare (stream out))
             (format out "[~s]~@[ ~?~]" (code-proc cc) (code-mesg cc)
                     (code-args cc)))))

results in these:

; in: DEFINE-CONDITION CODE
; (PORT:CODE-ARGS PORT::CC)
;
; caught STYLE-WARNING:
; undefined function: CODE-ARGS

; (PORT:CODE-MESG PORT::CC)
;
; caught STYLE-WARNING:
; undefined function: CODE-MESG

; (PORT:CODE-PROC PORT::CC)
;
; caught STYLE-WARNING:
; undefined function: CODE-PROC
;
; compilation unit finished
; Undefined functions:
; CODE-ARGS CODE-MESG CODE-PROC
; caught 3 STYLE-WARNING conditions

why?

Changed in sbcl:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Nikodemus Siivola (nikodemus) wrote :

Fixed in my pending tree.

Changed in sbcl:
assignee: nobody → Nikodemus Siivola (nikodemus)
Revision history for this message
Nikodemus Siivola (nikodemus) wrote :

f37fd91 fix style-warnings for condition slot-accessors used in :REPORT

Changed in sbcl:
status: Triaged → Fix Committed
assignee: Nikodemus Siivola (nikodemus) → nobody
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.