[Issue 18925] New: core.internal.hash auto-hash for structs of scalar fields should be `@safe`
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu May 31 08:52:05 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18925
Issue ID: 18925
Summary: core.internal.hash auto-hash for structs of scalar
fields should be `@safe`
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: druntime
Assignee: nobody at puremagic.com
Reporter: n8sh.secondary at hotmail.com
Currently doesn't work:
@safe unittest
{
import core.internal.hash : hashOf;
static struct S { int a; int b; }
auto h = hashOf(S.init);
}
--
More information about the Digitalmars-d-bugs
mailing list