On 17.02.2016 17:36, Matt Elkins wrote:
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)?

For reference, link to the issue:
https://issues.dlang.org/show_bug.cgi?id=15661

As you can see on the bugzilla page, the fix was pushed to the 'stable' branch. But nightlies are probably built from 'master'. So the fix isn't in the nightlies until 'stable' gets merged into 'master'. At the latest, that should happen again with the 2.071 release.

You can build a 'stable' dmd from git. I just did that and I can say that the test code for issue 15661 now prints

----
HERE1a
HERE1b
HERE2
----

which seems to be the correct output, indicating that the issue got fixed.

However, the code from this thread still prints

----
Before 8
Before 1
Foo being destroyed: 0
Before 2
Foo being destroyed: 0
Before 3
Foo being destroyed: 0
After Foo construction
About to lose scope
Foo being destroyed: 0
Foo being destroyed: 3
Foo being destroyed: 2
Foo being destroyed: 1
Foo being destroyed: 8
----

So, different issue?

Reply via email to