issue 7006 - std.math.pow (integral, integral) crashes on negative exponents

Timon Gehr timon.gehr at
Wed Dec 18 02:30:38 UTC 2019

On 18.12.19 03:14, Timon Gehr wrote:
> Perhaps what you mean to say is that the C++ standard is understood to 
> be so lax that it doesn't actually define the expected result of pow for 
> anything but the listed special cases, such that pedantically speaking, 
> pow could return NaN (or, usually, any other value) for all other pairs 
> of arguments (usually, without raising a domain error)?

Reviewing this page, this does not appear to be the case either:

So I guess I still don't understand why you think an implementation 
could return an arbitrary value.

More information about the Digitalmars-d mailing list