Bug 13053 – Wrong warning on implicitly generated __xtoHash
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-06T08:15:00Z
Last change time
2014-08-22T08:04:09Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0 by k.hara.pg — 2014-07-06T08:15:10Z
Test case:
@system:
struct S
{
int[] a;
}
Output:
Warning: toHash() must be declared as extern (D) size_t toHash() const nothrow @safe, not nothrow @system uint(ref const(S) p)
The error message is pointless and has no line number.