Fortran has built-in complex numbers and complex-valued functions, so similar issues arise. There was a paper by Anton Shterenlikht, "On quality of implementation of Fortran 2008 complex intrinsic functions on branch cuts"
https://arxiv.org/abs/1712.10230 .