[PATCH] D42498: [ExprConstant] Fix crash when initialize an indirect field with another field.

Volodymyr Sapsai via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 21 18:55:12 PST 2018


vsapsai added a comment.

Thanks for response, Richard. I'll look into using `CXXDefaultInitExpr`.

As for

In https://reviews.llvm.org/D42498#1007028, @rsmith wrote:

> […] your approach will still go wrong if the `This` pointer is used in other ways, such as an explicit mention of `this` or a member function call.


I wasn't able to find a failing test case. Maybe I misunderstood you but in my testing functions declared in named structs had correct `This` pointer and in anonymous structs functions cannot be declared.


https://reviews.llvm.org/D42498





More information about the cfe-commits mailing list