[Issue 5270] Using a scope delegate allows memory corruption in safe mode

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jul 9 15:25:26 PDT 2014


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

--- Comment #5 from hsteoh at quickfur.ath.cx ---
Removing 'scope' from func's parameter fixes the problem, since the compiler
will then allocate x on the heap instead of the stack.

--


More information about the Digitalmars-d-bugs mailing list