[Issue 18245] New: Segfault on std.math.nearbyint

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 16 21:59:06 UTC 2018


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 at puremagic.com
          Reporter: rumbu at 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);
}

--


More information about the Digitalmars-d-bugs mailing list