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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Oct 18 08:16:02 PDT 2016


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

safety0ff.bugz <safety0ff.bugz at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |safety0ff.bugz at gmail.com

--- Comment #1 from safety0ff.bugz <safety0ff.bugz at gmail.com> ---
Assert(0) is special: https://dlang.org/spec/expression.html#AssertExpression
Do you have a different example?

Code from pastebin:
void main() {
  scope(exit) {}
  scope(exit) {assert(false); };
  return;
}

--


More information about the Digitalmars-d-bugs mailing list