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.
Comment #1 by k.hara.pg — 2014-07-06T08:19:29Z
Comment #2 by github-bugzilla — 2014-07-06T22:15:05Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/0a2cc8fdad4b532b705944eac2d536770ee550f5 fix Issue 13053 - Wrong warning on implicitly generated __xtoHash https://github.com/D-Programming-Language/dmd/commit/01e467d260fd085a7ebc535c44f9092e211ed754 Merge pull request #3719 from 9rnsr/fix13053 [REG2.066a] Issue 13053 - Wrong warning on implicitly generated __xtoHash
Comment #3 by github-bugzilla — 2014-07-08T01:25:07Z
Commit pushed to 2.066 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/90ddb0a2e50377895e32227bc9b0c1abce754b73 Merge pull request #3719 from 9rnsr/fix13053 [REG2.066a] Issue 13053 - Wrong warning on implicitly generated __xtoHash
Comment #4 by github-bugzilla — 2014-08-22T08:04:09Z