[cfe-dev] Regarding PointerToMember CXXBaseSpecifiers

Deep Majumder via cfe-dev cfe-dev at lists.llvm.org
Thu Jan 28 20:29:42 PST 2021


Hi everyone,
I was working on a fix for #48739 (
https://bugs.llvm.org/show_bug.cgi?id=48739), which is about an assertion
failure triggered by PointerToMember. Going by the docs for PointerToMember
at
https://clang.llvm.org/doxygen/classclang_1_1ento_1_1nonloc_1_1PointerToMember.html#details,
the list of CXXBaseSpecifiers is for *holding the history of casts applied*.
However, it seems that the list also holds a list of the base classes of
the class whose member we are pointing to. My reasoning is summarised at
https://reviews.llvm.org/D95307 on my comment on Jan 26.
Am I missing something or is my analysis right?
Warm Regards,
Deep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20210129/a6377eac/attachment.html>


More information about the cfe-dev mailing list