[Issue 7006] std.math.pow (integral, integral) crashes on negative exponents

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Dec 17 13:35:38 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=7006

timon.gehr at gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at gdcproject.org
           Severity|normal                      |regression

--- Comment #9 from timon.gehr at gmx.ch ---
The expression (-1)^^x for negative x used to work correctly (by accident) due
to constant folding. This constant folding for pow is going away:
https://github.com/dlang/dmd/commit/0f2889c3aa9fba5534e754dade0cae574b636d55

Therefore, if this issue is not fixed, we will have a regression in the next
compiler release.

--


More information about the Digitalmars-d-bugs mailing list