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



14:17:20 PST ---
Created an attachment (id=1318)
Bug demonstration


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



https://github.com/D-Programming-Language/dmd/pull/3184


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


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