[cfe-commits] [patch] Support decltype in pseudodestructor/dependent destructor calls

Eli Friedman eli.friedman at gmail.com
Mon Dec 12 11:18:44 PST 2011


On Sun, Dec 11, 2011 at 8:27 PM, David Blaikie <dblaikie at gmail.com> wrote:
> Here's the finishing touches on decltype in explicit destructor calls
> - supporting pseudodestructor calls and destructor calls on dependent
> types (which are handled by Clang in a similar way to pseudodestructor
> calls):
>
> typedef int foo;
> foo f;
> f.~decltype(foo())();
>
> template<typename T>
> void func(T* t) {
>  t->~decltype(T())();
> }
>
> etc...

Patch looks fine.

-Eli




More information about the cfe-commits mailing list