#5782 Endless recursion in CheckClass::checkReturnPtrThis(). Break endless recursion by remembering the callstack