Bug 13393 – [REG2.067a] std.algorithm.joiner Assertion failure in popFront() when using with cartesianProduct
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-08-28T11:14:00Z
Last change time
2014-08-29T22:15:36Z
Keywords
pull
Assigned to
nobody
Creator
mrsmith33
Comments
Comment #0 by mrsmith33 — 2014-08-28T11:14:29Z
Here is a reduced test case.
-------------------------------------------------------
import std.algorithm;
import std.range;
import std.stdio;
void main()
{
[cartesianProduct([0],[0],[0])].joiner.writeln;
}
-------------------------------------------------------
Fails with core.exception.AssertError@std\algorithm.d(3804): Assertion failure in popFront()
in pure nothrow @nogc @safe void std.algorithm.joiner!(std.algorithm.cartesianProduct!(int[], int[], int[]).cartesianProduct(int[], int[], int[]).Result[]).joiner(std.algorithm.cartesianProduct!(int[], int[], int[]).cartesianProduct(int[], int[], int[]).Result[]).Result.popFront() at D:\D\dmd2\windows\bin\..\import\std\algorithm.d(3805)
0x004020CA in _Dmain at D:\test\main2.d(7)
Tested with phobos commit f0e9039227ee0fee664cde2d29a733cc69873912
Current master on dpaste works fine http://dpaste.dzfl.pl/b2ced50be1a6