[Issue 12202] SortedRange + alias this + foreach => Segmentation fault
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Sep 11 12:30:59 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12202
hsteoh at quickfur.ath.cx changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice
Severity|normal |critical
--- Comment #1 from hsteoh at quickfur.ath.cx ---
Reduced test case:
------
struct S(T)
{
import std.range;
}
unittest
{
auto a1 = S!int();
foreach(i, e; a1)
{
}
}
------
Seems this has nothing to do with sortedRange, it's a compiler bug.
--
More information about the Digitalmars-d-bugs
mailing list