Summary: Destructor not called on temporaries
           Product: D
           Version: 2.032
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD

--- Comment #0 from Bartosz Milewski <> 2009-11-16 16:27:58 
PST ---
Created an attachment (id=499)
Test case

Function f returns (by value) a struct with a destructor. When I assingn the
return to a temporary variable, its destructor is called at the end of the
scope. If I don't assign it, the destructor of an implicit temporary is not
called. In my example this screws up reference counting.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to