Confusion regarding struct lifecycle

ZombineDev via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 17 17:11:12 PST 2016


On Wednesday, 17 February 2016 at 16:36:35 UTC, Matt Elkins wrote:
> 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.

Sorry for the confusion. The bug was indeed fixed in the stable 
branch, however the stable branch is not yet merged into master, 
from which the nightly builds are packaged.
You should be able to test it with a nightly build probably 
within 1 or 2 days after you get a "Commits pushed to master" 
notification on the bugzilla issue [1].

[1]: https://issues.dlang.org/show_bug.cgi?id=15661


More information about the Digitalmars-d-learn mailing list