Bug 19687 – Wrong error for overloaded opDispatch + UFCS with non-existing function
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P5
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-02-19T15:08:09Z
Last change time
2019-02-24T18:25:56Z
Keywords
diagnostic, pull
Assigned to
No Owner
Creator
Vladimir Panteleev
Comments
Comment #0 by dlang-bugzilla — 2019-02-19T15:08:09Z
///////////////////// test.d /////////////////////
struct S
{
void opDispatch(string name)() {}
void opDispatch(string name)(string value) { }
}
unittest
{
S n;
n.foo = "".nonexisting();
}
//////////////////////////////////////////////////
Compiler output:
test.d(10): Error: no property foo for type S
Looks like a regression in 2.064, before which the error message correctly mentioned "nonexisting".
Comment #1 by dlang-bot — 2019-02-20T15:57:36Z
@RazvanN7 created dlang/dmd pull request #9378 "Fix Issue 19687 - Wrong error for overloaded opDispatch + UFCS with non-existing function" fixing this issue:
- Fix Issue 19687 - Wrong error for overloaded opDispatch + UFCS with non-existing function
https://github.com/dlang/dmd/pull/9378
Comment #2 by dlang-bot — 2019-02-21T10:13:13Z
dlang/dmd pull request #9378 "Fix Issue 19687 - Wrong error for overloaded opDispatch + UFCS with non-existing function" was merged into stable:
- e12ede8ff8386c429356295dfa23682cadd44dc5 by RazvanN7:
Fix Issue 19687 - Wrong error for overloaded opDispatch + UFCS with non-existing function
https://github.com/dlang/dmd/pull/9378
Comment #3 by dlang-bot — 2019-02-24T18:25:56Z
dlang/dmd pull request #9387 "Merge remote-tracking branch 'upstream/stable' into merge_stable" was merged into master:
- e12ede8ff8386c429356295dfa23682cadd44dc5 by RazvanN7:
Fix Issue 19687 - Wrong error for overloaded opDispatch + UFCS with non-existing function
- 42a7874c9eefbae4c8dc3ba922a80f27769333a2 by The Dlang Bot:
Merge pull request #9378 from RazvanN7/Issue_19687
Fix Issue 19687 - Wrong error for overloaded opDispatch + UFCS with non-existing function
merged-on-behalf-of: Nicholas Wilson <[email protected]>
https://github.com/dlang/dmd/pull/9387