Bug 15807 – Array!bool insertBack is broken

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2016-03-17T23:48:00Z
Last change time
2016-03-18T16:07:07Z
Assigned to
nobody
Creator
dragoscarp

Comments

Comment #0 by dragoscarp — 2016-03-17T23:48:51Z
import std.algorithm; import std.container; void main() { Array!bool a; for (int i; i < 32; ++i) a.insertBack(true); assert(a[].all); // works a.insertBack(true); assert(a[32]); // fails }
Comment #1 by dragoscarp — 2016-03-18T01:11:00Z
Comment #2 by github-bugzilla — 2016-03-18T16:07:06Z