http://d.puremagic.com/issues/show_bug.cgi?id=8057
Denis Shelomovskij <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from Denis Shelomovskij <[email protected]> 2012-11-03 22:35:32 MSK --- S's destructor is incorrect, as you always can set `S s = S.init` and the destructor must process that correctly. Corrected destructor variant: --- ~this() { + // Struct always can equal to its `init` <- added + if(this == S.init) return; <- added // Access to enclosing scope assert(n == 10); // Line11 } --- -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
