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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 25 13:13:04 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7006

           Summary: std.math.pow (integral, integral) crashes on negative
                    exponents
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: timon.gehr at gmx.ch


--- Comment #0 from timon.gehr at gmx.ch 2011-11-25 13:12:07 PST ---
It seems to be by design:
> if (n<0) return x/0; // Only support positive powers

But that does not make any sense. The results are well-defined if x!=0.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list