[Issue 10789] Struct destructor erroneously called

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 17 09:26:46 PDT 2013


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


Maxim Fomin <maxim at maxim-fomin.ru> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |regression


--- Comment #4 from Maxim Fomin <maxim at maxim-fomin.ru> 2013-08-17 09:26:45 PDT ---
(In reply to comment #3)
> 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.

Sounds like a regression.

-- 
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