[Issue 17448] Move semantics cause memory corruption and cryptic bugs
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 4 07:14:59 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=17448
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #20 from Walter Bright <bugzilla at digitalmars.com> ---
With the current compiler, and the addition of @safe:
test.d(13): Error: address of variable `this` assigned to `timeoutCallback`
with longer lifetime
Line 13 is:
timeoutCallback = &handleTimeout;
I believe this should resolve the issue.
--
More information about the Digitalmars-d-bugs
mailing list