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

--- Comment #5 from Sönke Ludwig <[email protected]> ---
Correction: It's the first call to yield() that crashes.

---
import core.thread, std.stdio;
void fun() { writeln("A"); Fiber.yield(); writeln("B"); }
void main() {
    auto f = new Fiber(&fun);
    writeln("call..");
    f.call(false);
    writeln("call again..");
    f.call(false);
    writeln("exit");
}
---

Output:
call..
A
(crash)

--

Reply via email to