www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13469] New: x^^y wrong result

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

          Issue ID: 13469
           Summary: x^^y wrong result
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: ilyayaroshenko gmail.com

import std.math;
static assert(1.7^^1000 == 1.7.pow(1000));//OK
void main() {
    assert(1.7^^1000 == 1.7.pow(1000));   //Assertion failure
}
//std.math.pow is correct! x^^y - wrong

--
Sep 13 2014