https://issues.dlang.org/show_bug.cgi?id=18767
Issue ID: 18767
Summary: __xtoHash memberwise hashing shouldn't just sum the
member hashes
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: [email protected]
Reporter: [email protected]
Currently:
```
const(char)* code =
"size_t h = 0;" ~
"foreach (i, T; typeof(p.tupleof))" ~
" h += typeid(T).getHash(cast(const void*)&p.tupleof[i]);" ~
"return h;";
```
--
