Ticket #390 (closed defect: fixed)
Defstruct :include with :conc-name
| Reported by: | jch | Owned by: | rme |
|---|---|---|---|
| Priority: | minor | Milestone: | Clozure CL 1.5 |
| Component: | Compiler | Version: | trunk |
| Keywords: | defstruct | Cc: |
Description
Consider the following code, which is a simplified version of stuff that can be found in CL-Yacc:
(defstruct item x) (defstruct (sub-item (:include item) (:conc-name item-)) y)
The ANSI CL spec explicitly states that this is allowed, in the description of :CONC-NAME in the description of DEFSTRUCT. However, CCL generates a warning:
;Compiler warnings for "/home/pps/jch/struct-test.lisp" : ; In an anonymous lambda form at position 18: Duplicate definitions of ITEM-X, in this file
It would appear that CCL generates correct code, but I believe that this is by accident.
Change History
Note: See
TracTickets for help on using
tickets.
