[Issue 14696] destructor for temporary called before statement is complete with conditional operator
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 28 15:11:59 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=14696
--- Comment #13 from Dlang Bot <dlang-bot at dlang.rocks> ---
@SSoulaimane created dlang/dmd pull request #10628 "Fix issue 14696 - Fix a
remaining case where the destructor is still called on a cold branch" fixing
this issue:
- Fix issue 14696 - Fix a remaining case where the destructor is still called
on a cold branch
Temporary variables should not be destroyed when the branch that initializes
them is not taken.
https://github.com/dlang/dmd/pull/10628
--
More information about the Digitalmars-d-bugs
mailing list