[Issue 8295] Struct member destructor can not be called from shared struct instance
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Nov 13 03:01:29 PST 2014
https://issues.dlang.org/show_bug.cgi?id=8295
Walter Bright <bugzilla at digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla at digitalmars.com
--- Comment #1 from Walter Bright <bugzilla at digitalmars.com> ---
Here's the repro case from the attachment:
struct foo
{
char[] buf;
this(size_t size)
{
buf = new char[size];
}
~this()
{
buf = null;
}
}
struct bar
{
foo f;
}
shared bar b;
--
More information about the Digitalmars-d-bugs
mailing list