D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 15807 - Array!bool insertBack is broken
Summary: Array!bool insertBack is broken
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: x86_64 Linux
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-17 23:48 UTC by Dragos Carp
Modified: 2016-03-18 16:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Dragos Carp 2016-03-17 23:48:51 UTC
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 Dragos Carp 2016-03-18 01:11:00 UTC
Fixed with https://github.com/D-Programming-Language/phobos/pull/4091