repeated keyword error not caught by compile/compile-file
Bug #1458600 reported by
3b
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SBCL |
Fix Released
|
Low
|
Stas Boukarev |
Bug Description
(compile nil '(lambda () (defun foo (&key a a))))
=>
debugger invoked on a SIMPLE-ERROR in thread
#<THREAD "main thread" RUNNING {1003B57493}>:
repeated keyword :A in lambda list: (&KEY (:A T) (:A T))
instead of just printing a message in compilation results as expected.
Same behavior with COMPILE-FILE.
(lambda (&key a a)), (defun foo (a a)), (defun foo (&optional a a)) all work as expected:
; in: LAMBDA (A A)
; (LAMBDA (A A))
;
; caught ERROR:
; The variable A occurs more than once in the lambda list.
;
; compilation unit finished
; caught 1 ERROR condition
or similar
tested on 1.2.11.70 x8664 windows, 1.2.10.49 x8664 linux, 1.2.7.54 arm linux
Changed in sbcl: | |
assignee: | nobody → Stas Boukarev (stassats) |
status: | New → Triaged |
importance: | Undecided → Low |
Changed in sbcl: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
In 7827376d5727334 698b949698f89e5 3e9b0aaf70