[Issue 18932] New: core.internal.hash.hashOf(val, seed) ignores `seed` when val is a raw pointer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 1 13:54:06 UTC 2018


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

          Issue ID: 18932
           Summary: core.internal.hash.hashOf(val, seed) ignores `seed`
                    when val is a raw pointer
           Product: D
           Version: D2
          Hardware: x86
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: n8sh.secondary at hotmail.com

Currently fails:
unittest
{
    import core.internal.hash : hashOf;
    assert(hashOf(null, 0) != hashOf(null, 123456789));
}

--


More information about the Digitalmars-d-bugs mailing list