[Issue 13053] New: Wrong warning on implicitly generated __xtoHash
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sun Jul  6 01:15:10 PDT 2014
    
    
  
https://issues.dlang.org/show_bug.cgi?id=13053
          Issue ID: 13053
           Summary: Wrong warning on implicitly generated __xtoHash
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: diagnostic
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: k.hara.pg at gmail.com
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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list