forward-referenced-class trouble

Bug #309080 reported by Nikodemus Siivola
2
Affects Status Importance Assigned to Milestone
SBCL
Confirmed
Low
Unassigned

Bug Description

 reported by Bruno Haible on sbcl-devel
   (defclass c (a) ())
   (setf (class-name (find-class 'a)) 'b)
   (defclass a () (x))
   (defclass b () (y))
   (make-instance 'c)
 Expected: an instance of c, with a slot named x
 Got: debugger invoked on a SIMPLE-ERROR in thread 78906:
        While computing the class precedence list of the class named C.
        The class named B is a forward referenced class.
        The class named B is a direct superclass of the class named C.

  [ Is this actually a bug? DEFCLASS only replaces an existing class
    when the class name is the proper name of that class, and in the
    above code the class found by (FIND-CLASS 'A) does not have a
    proper name. CSR, 2006-08-07 ]

Tags: pcl uncertain
Changed in sbcl:
status: New → Confirmed
Changed in sbcl:
importance: Undecided → Low
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.