Uncaught compiler error with duplicate doc string

Bug #1740758 reported by Paul F. Dietz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
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)
Changed in sbcl:
status: New → Triaged
importance: Undecided → Low
tags: added: malformed-source
Revision history for this message
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
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.