www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18245] New: Segfault on std.math.nearbyint

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

          Issue ID: 18245
           Summary: Segfault on std.math.nearbyint
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: rumbu rumbu.ro

If there is no alternative, make function unavailable on Windows 64 bit instead
of using a 0 assertion.

real nearbyint(real x)  trusted nothrow  nogc
{
    version (CRuntime_Microsoft)
    {
        assert(0);      // not implemented in C library
    }
    else
        return core.stdc.math.nearbyintl(x);
}

--
Jan 16 2018