That's a fair point (and worth documenting as part of the library), but I'd be much more likely to implement pow(x, x) carefully than switch to a different language or compiler.
An alternative would be creating a general purpose language just for this feature - an interesting though rather specialized project.