That probably means 'struct record' should stop referencing query->view? record->view->table is now also used class_object, not only enum_class_object.
Are you already working on that? If not I could probably try to do something between the lines of that.