Bug 16600 – Wrong error message for ambiguous mutable/immutable constructor

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-10-06T18:45:00Z
Last change time
2017-08-07T13:15:34Z
Assigned to
nobody
Creator
andrei
See also
https://issues.dlang.org/show_bug.cgi?id=17349

Comments

Comment #0 by andrei — 2016-10-06T18:45:59Z
For this code: struct S { this(string); this(string) immutable; } void main() { auto a = const(S)("abc"); } the error message is: t.d(7): Error: t.S.__ctor called with argument types (string) const matches both: t.d(2): t.S.this(string) and: t.d(3): t.S.this(string) Should be: t.d(7): Error: t.S.__ctor called with argument types (string) const matches both: t.d(2): t.S.this(string) and: t.d(3): t.S.this(string) immutable
Comment #1 by github-bugzilla — 2017-04-03T19:35:57Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/bb2e552c567e70c501cc411af0ba9e74acc2c8c9 Fix Issue 16600 - Wrong error message for ambiguous mutable/immutable constructor https://github.com/dlang/dmd/commit/fbddd24bcc5544d9fa6b736c42348cd3b1e4d5c9 Merge pull request #6662 from RazvanN7/Issue_16600 Fix Issue 16600 - Wrong error message for ambiguous mutable/immutable constructor merged-on-behalf-of: Andrei Alexandrescu <[email protected]>
Comment #2 by bugzilla — 2017-05-09T16:12:10Z
Reopened as it is no longer an error: https://github.com/dlang/dmd/pull/6731
Comment #3 by bugzilla — 2017-06-10T20:45:21Z
Comment #4 by github-bugzilla — 2017-06-17T11:33:47Z
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/bb2e552c567e70c501cc411af0ba9e74acc2c8c9 Fix Issue 16600 - Wrong error message for ambiguous mutable/immutable constructor https://github.com/dlang/dmd/commit/fbddd24bcc5544d9fa6b736c42348cd3b1e4d5c9 Merge pull request #6662 from RazvanN7/Issue_16600
Comment #5 by github-bugzilla — 2017-08-07T13:15:34Z
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/bb2e552c567e70c501cc411af0ba9e74acc2c8c9 Fix Issue 16600 - Wrong error message for ambiguous mutable/immutable constructor https://github.com/dlang/dmd/commit/fbddd24bcc5544d9fa6b736c42348cd3b1e4d5c9 Merge pull request #6662 from RazvanN7/Issue_16600