Thread overview
[Issue 13095] Sometimes struct destructor is called if constructor throws
[Issue 13095] Someteims `struct` destructor is called if constructor throws
Jul 11, 2014
Denis Shelomovskij
Oct 31, 2014
Walter Bright
Oct 31, 2014
Walter Bright
July 11, 2014
https://issues.dlang.org/show_bug.cgi?id=13095

--- Comment #1 from Denis Shelomovskij <verylonglogin.reg@gmail.com> ---
Note:
Replacing `S(0)` with `S s = S(0)` or `f(S(0))` detriggers the issue.

--
October 31, 2014
https://issues.dlang.org/show_bug.cgi?id=13095

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com
            Summary|Someteims `struct`          |Sometimes struct destructor
                   |destructor is called if     |is called if constructor
                   |constructor throws          |throws

--
October 31, 2014
https://issues.dlang.org/show_bug.cgi?id=13095

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
https://github.com/D-Programming-Language/dmd/pull/4101

--
November 16, 2014
https://issues.dlang.org/show_bug.cgi?id=13095

--- Comment #3 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/bdfd00f4130e44c10f41442b05af465b1b0fa8d8 fix Issue 13095 - Someteims  destructor is called if constructor throws

https://github.com/D-Programming-Language/dmd/commit/31326431312a01dda10759cf47c0d5d617f7009c Merge pull request #4101 from WalterBright/fix13095

fix Issue 13095 - Sometimes struct  destructor is called if constructor throws

--
February 19, 2015
https://issues.dlang.org/show_bug.cgi?id=13095

--- Comment #4 from github-bugzilla@puremagic.com ---
Commits pushed to 2.067 at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/bdfd00f4130e44c10f41442b05af465b1b0fa8d8 fix Issue 13095 - Someteims  destructor is called if constructor throws

https://github.com/D-Programming-Language/dmd/commit/31326431312a01dda10759cf47c0d5d617f7009c Merge pull request #4101 from WalterBright/fix13095

--