This patch fixes handling of code like this:
struct Foo; void foo(Foo *p) { p.~Foo(); }
Differential D57111
Make Clang not crash on calls to destructors on incomplete pointer types rzhikharevich on Jan 23 2019, 11:54 AM. Authored by
Details
This patch fixes handling of code like this: struct Foo; void foo(Foo *p) { p.~Foo(); }
Diff Detail
Event TimelineComment Actions Upload patches with full context please. Comment Actions I don't think so, the valid code would be 'p->~C()'.
No. Should I file one? Comment Actions You are right, my bad!
No, it is just so that we can close the corresponding bug report if there is one. I guess you will want someone to commit it ? Comment Actions It looks to be correct to me since the problem is that LookupDestructor will dispatch to |