https://issues.dlang.org/show_bug.cgi?id=16131
Ketmar Dark <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #2 from Ketmar Dark <[email protected]> --- structs are value types, so compiler is free to move 'em (i.e. just memcpy without calling postblit/dtor/ctor). this is a feature of value types. that's why you should never store a pointer to stack-allocated struct, even if it is guaranteed that the pointer will not outlive the struct itself. i'm closing this bug as INVALID, but feel free to open an ER with the request for better documentation for copy/move semantic. --
