[rfh][pr17996] How to implicitly use thiscall on pointer to member functions

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Nov 19 13:38:27 PST 2013


The attached patch fixes the testcase in the PR, but unfortunately it
causes assertion failures deep inside template instantiation when
processing

struct A {};
template<typename Fn> struct X {
  typedef Fn A::*p;
};
X<void ()>::p;

Since the first pattern shows up during a bootstrap and the second one
doesn't, I have just applied this patch locally to try to find the
next bug for now.

If it is clear to anyone what the assert during the transformation is
all about, please let me know I will try to fix this bug too.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 10469 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131119/a3f54353/attachment.obj>


More information about the cfe-commits mailing list