← Back to index
|
Original Bugzilla link
Bug 13563 – ICE with opIndexAssign op-overloading and ModuleScopeOperator
Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-10-01T12:47:00Z
Last change time
2015-02-18T03:37:46Z
Keywords
ice, pull
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0
by k.hara.pg — 2014-10-01T12:47:03Z
Separating issue from
https://issues.dlang.org/show_bug.cgi?id=13356#c1
void writeConfig() { JSONValue v; v["name"] = .z(); } struct JSONValue { import std.variant; alias Payload = Algebraic!(typeof(null)); Payload payload; alias payload this; } Simplified test case: struct Payload { void opIndex(K)(K i) {} void opIndexAssign(T, N)(T value, N i) {} } struct Value { Payload payload; alias payload this; } void main() { Value v; v["name"] = .z(); }
Comment #1
by k.hara.pg — 2014-10-01T12:56:38Z
https://github.com/D-Programming-Language/dmd/pull/4037
Comment #2
by github-bugzilla — 2014-10-05T06:32:57Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/49c10d831bb181755f711b3ebcb039ead9313a14
fix Issue 13563 - ICE with opIndexAssign op-overloading and ModuleScopeOperator
https://github.com/D-Programming-Language/dmd/commit/01e80d03a789d766899a48f46a46baa32b035dac
Merge pull request #4037 from 9rnsr/fix13563 Issue 13563 - ICE with opIndexAssign op-overloading and ModuleScopeOperator
Comment #3
by k.hara.pg — 2014-11-30T02:39:27Z
*** Issue 13789 has been marked as a duplicate of this issue. ***
Comment #4
by github-bugzilla — 2015-02-18T03:37:46Z
Commits pushed to 2.067 at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/49c10d831bb181755f711b3ebcb039ead9313a14
fix Issue 13563 - ICE with opIndexAssign op-overloading and ModuleScopeOperator
https://github.com/D-Programming-Language/dmd/commit/01e80d03a789d766899a48f46a46baa32b035dac
Merge pull request #4037 from 9rnsr/fix13563