When virtual functions are present, the RTTI attribute of all base classes must match that of the derived class.