www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 12045] New: Destructor call omitted for NRVO'd struct in exceptional case

reply d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12045

           Summary: Destructor call omitted for NRVO'd struct in
                    exceptional case
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: safety0ff.bugz gmail.com


--- Comment #0 from safety0ff.bugz <safety0ff.bugz gmail.com> 2014-01-30
14:17:20 PST ---
Created an attachment (id=1318)
Bug demonstration

I was trying to work out how NRVO in DMD worked (to take a stab at #10929,) and
it looked like it might be omitting the calls even when an exception is thrown,
so I ran a test and it looks like it does omit them (See attached code.)

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jan 30 2014
next sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12045


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull, wrong-code
            Version|unspecified                 |D2


--- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2014-02-01 08:41:22 PST ---
https://github.com/D-Programming-Language/dmd/pull/3184

--- Comment #2 from github-bugzilla puremagic.com 2014-02-13 15:50:10 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/3dc08b365d91f4cb70c7c31418c040ad6d4493a0
fix Issue 12045 - Destructor call omitted for NRVO'd struct in exceptional case

https://github.com/D-Programming-Language/dmd/commit/a9ec782edfb80f8732cc5b1e903f85cab0959c7b
Merge pull request #3184 from 9rnsr/fix12045

Issue 12045 - Destructor call omitted for NRVO'd struct in exceptional case

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 13 2014
prev sibling parent d-bugmail puremagic.com writes:
https://d.puremagic.com/issues/show_bug.cgi?id=12045


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 13 2014