www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13053] New: Wrong warning on implicitly generated __xtoHash


          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 puremagic.com
          Reporter: k.hara.pg gmail.com

Test case:

struct S
    int[] a;

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.

Jul 06 2014