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

--- Comment #5 from bearophile_h...@eml.cc ---
(In reply to Andrej Mitrovic from comment #1)
> Got a newer example maybe? std.boxer is long gone.

Is this good enough?


void main() {
    import std.stdio, std.variant;
    auto a = new Variant[1];
    a[0] = a;
    writeln(a); // Error: Stack Overflow
}

--

Reply via email to