[Issue 13969] [ICE] (backend\cgcod.c 2309) with cycle(iota(a,b,s))
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Jan 13 22:54:38 PST 2015
https://issues.dlang.org/show_bug.cgi?id=13969
--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> ---
Reduced test case (remove dependency to Phobos):
struct IotaResult
{
int pastLast;
int step;
size_t length() const
{
if (step > 0)
return pastLast / step;
else
return pastLast / -step;
}
}
struct Cycle
{
IotaResult _original;
size_t _index;
this(IotaResult input, size_t i = 0)
{
_index = i % _original.length();
}
}
void main()
{
auto c = Cycle(IotaResult(0, -1));
}
--
More information about the Digitalmars-d-bugs
mailing list