Uncaught compiler error with duplicate doc string

Bug #1740758 reported by Paul F. Dietz on 2018-01-01
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Low
Unassigned

Bug Description

(compile nil '(lambda () "foo" "foo" nil))

===>

duplicate doc string "foo"
   [Condition of type SIMPLE-ERROR]
[...]
Backtrace:
  0: (SB-INT:PARSE-BODY ("foo" "foo" NIL) T NIL)
  1: (SB-C::IR1-CONVERT-LAMBDA (LAMBDA NIL "foo" "foo" NIL) :SOURCE-NAME SB-C::.ANONYMOUS. :DEBUG-NAME (LAMBDA NIL) :MAYBE-ADD-DEBUG-CATCH T :SYSTEM-LAMBDA NIL)
[...]

Stas Boukarev (stassats) on 2018-01-01
Changed in sbcl:
status: New → Triaged
importance: Undecided → Low
tags: added: malformed-source
Paul F. Dietz (paul-f-dietz) wrote :

(compile nil '(lambda () "foo" "foo")) is fine, because the second "foo" is not interpreted as a docstring.

summary: - Uncaught compiler error with duplicate doc string (NOT malformed)
+ Uncaught compiler error with duplicate doc string
Changed in sbcl:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers