← Back to index
|
Original Bugzilla link
Bug 13077 – [dmd 2.066-b2] std.range.array with shared InputRangeObject
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-07-08T14:32:00Z
Last change time
2014-08-21T18:22:08Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
NCrashed
Comments
Comment #0
by NCrashed — 2014-07-08T14:32:54Z
DMD: 2.066.0-b2 Platform: 3.14.9-200.fc20.x86_64 ``` import std.range; class A {} InputRange!(shared A) foo() { return [new shared A].inputRangeObject; } void bar() { auto res = foo.array; } void main() {} ``` Compile-time error: ``` /usr/include/dmd/phobos/std/conv.d(3914): Error: cannot implicitly convert expression (arg) of type shared(A) to app.A /usr/include/dmd/phobos/std/array.d(2476): Error: template instance std.conv.emplaceRef!(shared(A)).emplaceRef!(shared(A)) error instantiating /usr/include/dmd/phobos/std/array.d(64): instantiated from here: put!(shared(A)) source/app.d(12): instantiated from here: array!(InputRange!(shared(A))) ```
Comment #1
by k.hara.pg — 2014-07-17T03:42:25Z
https://github.com/D-Programming-Language/phobos/pull/2338
Comment #2
by github-bugzilla — 2014-07-17T09:45:19Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/bf6b0a9759beb95273b7f6b9a5dcf7b77dea62eb
fix Issue 13077 - std.range.array with shared InputRangeObject
https://github.com/D-Programming-Language/phobos/commit/706e131d243f40a5e34e4a86f374fd8837aab8a5
Merge pull request #2338 from 9rnsr/fix13077 [REG2.066a] Issue 13077 - std.range.array with shared InputRangeObject
Comment #3
by github-bugzilla — 2014-07-17T10:38:51Z
Commit pushed to 2.066 at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/e511efddb94a9f32e3a97a88b2ba7ccb92231539
Merge pull request #2338 from 9rnsr/fix13077 [REG2.066a] Issue 13077 - std.range.array with shared InputRangeObject Conflicts: std/array.d
Comment #4
by github-bugzilla — 2014-08-21T18:22:08Z
Commit pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/e511efddb94a9f32e3a97a88b2ba7ccb92231539
Merge pull request #2338 from 9rnsr/fix13077