https://issues.dlang.org/show_bug.cgi?id=8269
Denis Shelomovskij <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-code CC| |[email protected] Severity|normal |major --- Comment #5 from Denis Shelomovskij <[email protected]> --- Smaller testcase: --- struct S { bool alive = true; ~this() { alive = false; } } void main() { with(S()) // <-- `S` is created and destructed here assert(alive); // fails } --- This is a major issue as it breaks RAII. --
