[cfe-commits] [PATCH] CFG destructors for temporaries

Ted Kremenek kremenek at apple.com
Tue Nov 2 21:59:12 PDT 2010


Looks great Marcin.

On Nov 1, 2010, at 4:10 PM, Marcin Świderski wrote:

> Hi
> 
> Patch adds generating destructors for temporary objects. Two cases I know of, that are not handled properly:
> 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,
> 2. There will be no destructor for constant reference member bound to temporary at the exit from constructor.
> 
> Please review and approve for commit.
> 
> - Marcin
> <cfg-temp-obj-dtor.patch>





More information about the cfe-commits mailing list