The class may not be known during compile time in such a way that Lisp can create instances. The standard says that the class should be known during compilation - but not that instances can be created, before the DEFCLASS
form is actually executed.
DEFCONSTANT
may evaluate the MAKE-INSTANCE
form during compile time. As you see in the backtrace, SBCL actually tries to call MAKE-INSTANCE
.
You would need to make the class fully available during compile time. See EVAL-WHEN
or put the class declaration in another file, which you need to load before.