Fixed #5255 (False positive (error) Uninitialized variable: ptr2 - calling a static member function)