[cfe-commits] [patch] Support decltype in destructor calls

David Blaikie dblaikie at gmail.com
Wed Dec 7 15:07:48 PST 2011


Here's a small patch to implement the use of decltype in (non-pseudo)
destructor calls like so:

struct foo { };
void func(foo* f) {
  f->decltype(*f)();
}

I thought I'd send this out as a small, easier to digest code review,
even though it doesn't cover all cases (the most obvious/useful cases
are in templates with dependent types in the expression. The problem
there is that clang parses those conservatively as pseudo destructor
calls & it'll take a bit more work to plumb this solution through that
code).

Let me know how it looks,
- David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr10127-dtor.diff
Type: application/octet-stream
Size: 3771 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20111207/20b6b872/attachment.obj>


More information about the cfe-commits mailing list