Fixed #5289 (Crash: Stack overflow in isImplicitlyVirtual_rec when checking SVN)