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

[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |wrong-code
                 CC|                            |[email protected]
           Hardware|x86_64                      |All
                 OS|Mac OS X                    |All

--- Comment #1 from [email protected] ---
Slightly reduced:

----
struct OpApply {
    int opApply(int delegate(int) cb) { return 0; }
}

struct Bolinha {
    int a = 0;
    this(int dummy) {
        OpApply moviadao;
        foreach(int b; moviadao) return;
    }
}

void main() {
    import std.stdio;
    writeln(Bolinha(0).a);
}
----

Also fails on Linux and Windows (wine).

--

Reply via email to