Confusion regarding struct lifecycle

Matt Elkins via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 17 08:36:35 PST 2016


On Wednesday, 17 February 2016 at 07:10:15 UTC, ZombineDev wrote:
>> The downside is that it really indicates that I didn't reduce 
>> my buggy program properly. I'll hold out for the 
>> live-object-destructor-call fix to see whether that corrects 
>> my problem; I can just leak resources until then :).

So I've reduced it more properly now, and am 98% sure I've just 
got another manifestation of that same bug.

> BTW, you can try the nighly build which should include the bug 
> fix:
> http://dlang.org/download.html

I tried this, and got the same issue. Actually, I was still able 
to reproduce the original reported issue as well, which leads me 
to believe either the bug was not actually fixed or (and this is 
more likely) I screwed something up with my install. Do I need to 
do anything special to install a nightly build (I'm on Windows)? 
My "install" procedure was to move my dmd2 folder, verify that 
compilation now fails since there is no compiler installed, and 
then copy in the nightly build's dmd2 folder over the original 
path. Compilation then succeeds (but the bug still manifests).

That was running through my IDE (IntelliJ with the D language 
plugin), and then in turn through DUB. To remove variables, I 
also tried running dmd directly on the test file: dmd.exe test.d 
-unittest -main. This compiled but also reproduced the bug.

I guess the other possibility is that a patch was made and the 
issue marked resolved, but the patch hasn't been folded into the 
nightly build. I have no idea how dmd's patch/build/CI process 
works, so I don't know whether that is a real possibility.


More information about the Digitalmars-d-learn mailing list