[Issue 10789] Struct destructor erroneously called

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 17 07:31:23 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10789



--- Comment #3 from Sönke Ludwig <sludwig at outerproduct.org> 2013-08-17 07:31:21 PDT ---
I digged a little in the DMD sources and found a commit by Kenji Hara that at
least affects this example and has a commented out code block that looks a
little suspicious :
https://github.com/D-Programming-Language/dmd/commit/b4bc25d72e601436f3999abc5c9c31e464385052#L4R1241

Changing "#if 0//DMDV2" back to "#if DMDV2" inserts a proper postblit call, but
then the returned t has its initialized field set to false. This does not
happen with the "#if 0" AFAICS. Unfortunately I know far to less about the
mechanics at work there to make an informed attempt to fix this.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list