Hi<div><br></div><div>Patch adds generating destructors for temporary objects. Two cases I know of, that are not handled properly:</div><div>1. For statement: const C& c = C(0) ?: C(1) destructors generated for condition will not differ from those generated for case without prolonged lifetime of temporary,</div>
<div>2. There will be no destructor for constant reference member bound to temporary at the exit from constructor.</div><div><br></div><div>Please review and approve for commit.</div><div><br></div><div>- Marcin</div>