Created attachment 499 [details] 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.
*** This issue has been marked as a duplicate of issue 3516 ***