[Issue 13969] [ICE] (backend\cgcod.c 2309) with cycle(iota(a,b,s))

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jan 14 00:22:46 PST 2015


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

--- Comment #2 from bearophile_hugs at eml.cc ---
(In reply to Kenji Hara from comment #1)
> Reduced test case (remove dependency to Phobos):

Further reduction:


struct Foo {
    int x, y;
    int bar() const {
        if (y > 0)
            return x / y;
        else
            return x / -y;
    }
}
Foo f;
int n;
void main() {
    n = 0 % f.bar();
}

--


More information about the Digitalmars-d-bugs mailing list