clauses in handler-case incorrectly reject duplicate doc strings

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

Bug Description

handler-case clauses have declaration*, not [[ declaration* | documentation ]], so they should not reject duplicate strings. Also, they SHOULD reject the presence of a string before a declaration.

(handler-case (list 1 2) (error (e) "foo" "bar" nil)) ==> should evaluate to (1 2)

Given the wording in the spec about :no-error, it is possible there that string forms following the declarations that might be confused as docstrings of a constructed lambda expression would not be allowed.

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

a32255dbe01d9abc5849d986ec41ba271812b18b

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.