Bug 10313 – inout constructor + IFTI + has indirections arg doesn't work

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-06-08T23:21:00Z
Last change time
2013-12-02T07:49:49Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2013-06-08T23:21:13Z
This code should work, but doesn't. Test case: struct JSONValue { JSONValue[] array; } struct Nullable(T) { this()(inout T value) inout {} //this(U:T)(inout U value) inout {} // workaround } void main() { JSONValue value = void; auto na = Nullable!JSONValue(value); }
Comment #1 by k.hara.pg — 2013-10-16T20:48:56Z
Comment #2 by github-bugzilla — 2013-11-08T09:10:53Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b317954972915cecc98b66288a469d2898c42f2a fix Issue 10313 - inout constructor + IFTI + has indirections arg doesn't work https://github.com/D-Programming-Language/dmd/commit/90d84c37eba16917ade45320ff75d7473a0c99ec Merge pull request #2675 from 9rnsr/fix10313 Issue 10313 - inout constructor + IFTI + has indirections arg doesn't work
Comment #3 by github-bugzilla — 2013-12-02T07:49:49Z