Endless loop in SGGeodesy::distanceM
This code triggers the problem
auto geod1 = SGGeod::fromDeg(176.30623232930921, -55.84059652626572);
auto geod2 = SGGeod::fromDeg(-3.3903270108616095, 55.944165801309168 );
double dist = SGGeodesy::distanceM(geod1, geod2);
It should return around 19000 km, but does not return at all.