Issue 233948
Summary [BPF] BTF for C++ pointer-to-member types
Labels new issue
Assignees
Reporter maxskokov
    A record with a pointer-to-member field crashes BTF emission (assertion in `getTypeId()`, or type 0 without assertions), in clang 21 as well:

```cpp
class C { public: int x; int C::*pm; };
C c;
```

`DW_TAG_ptr_to_member_type` is not handled in `visitDerivedType()`. It should be represented (a data member pointer is an offset, a member function pointer two words) or diagnosed.

Found in review of #233715.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to