← Back to index
|
Original Bugzilla link
Bug 8171 – [Regression 2.060head] Broken std.algorithm.move for nested struct has no member
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-05-30T18:28:00Z
Last change time
2012-05-31T04:10:35Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0
by k.hara.pg — 2012-05-30T18:28:45Z
This is a regression caused by fixing bug 8057. import std.algorithm; struct Array(T) { struct Payload { ~this() {} } } void main() { Array!int a; typeof(a).Payload b = void; move(a.Payload.init); // std\algorithm.d(1446): Error: array index [4294967295] is outside // array bounds [0 .. 0] // test.d(15): Error: template instance std.algorithm.move!(Payload) // error instantiating move(a.Payload.init, b); // std\algorithm.d(1355): Error: array index [4294967295] is outside // array bounds [0 .. 0] // test.d(19): Error: template instance std.algorithm.move!(Payload) // error instantiating }
Comment #1
by k.hara.pg — 2012-05-30T18:37:33Z
https://github.com/D-Programming-Language/phobos/pull/614
Comment #2
by github-bugzilla — 2012-05-30T19:23:21Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/1bd9b79e8462d03e382b53dda6f297e4e75eb6f0
fix Issue 8171 - Broken std.algorithm.move for nested struct has no member
https://github.com/D-Programming-Language/phobos/commit/6751d4a185863828919adafc387be1e59337360b
Merge pull request #614 from 9rnsr/fix8171 Issue 8171 - Broken std.algorithm.move for nested struct has no member