[Issue 12202] SortedRange + alias this + foreach => Segmentation fault

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Sep 11 13:54:26 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12202

--- Comment #2 from hsteoh at quickfur.ath.cx ---
OK, managed to cut it down to an almost bare-minimal test case:

----range.d----
@property front()() { }
---------------

----test.d----
struct S
{
    import range;
}
unittest
{
    S a1;
    foreach(i, e; a1)
    {
    }
}
---------------

Compiler command: dmd -main -unittest test.d

--


More information about the Digitalmars-d-bugs mailing list