[Issue 16622] multiple scope(exit) are damaging the stack

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Oct 19 10:26:59 PDT 2016


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

--- Comment #2 from robertw89 at googlemail.com ---
doesn't matter what is thrown if the stack is corrupted :)

void main() {
    scope(exit) {}

    scope(exit) {throw new Exception("kab00m!");    }; return;
}

--


More information about the Digitalmars-d-bugs mailing list