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

David Blaikie dblaikie at gmail.com
Sun Dec 11 20:27:18 PST 2011


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...

(also, I still have decltype in base-initializers out for CR & it's
fairly simple too)

Thanks for the review,
- David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr10127-dtor.diff
Type: text/x-diff
Size: 6309 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111211/7d009cf1/attachment.diff>


More information about the cfe-commits mailing list