[Issue 12045] New: Destructor call omitted for NRVO'd struct in exceptional case

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jan 30 14:17:23 PST 2014


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 at puremagic.com
        ReportedBy: safety0ff.bugz at gmail.com


--- Comment #0 from safety0ff.bugz <safety0ff.bugz at 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: -------


More information about the Digitalmars-d-bugs mailing list