From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Platform:Microsoft Visual C++ ABI" |
|---|
| claim | "Bits of RTTIBaseClassDescriptor.attributes as clang emits them for MSVC compatibility: 0x01 and 0x08 (set together) private somewhere on the inheritance path, 0x02 ambiguous base, 0x04 private base, 0x10 virtual base, 0x40 has a ClassHierarchyDescriptor pointer (always set). Ordinary public bases show 0x40, public virtual bases 0x50." |
|---|
| scope | | level | "platform" |
|---|
| applies_to | "Platform:Microsoft Visual C++ ABI" |
|---|
| observed_in | | "MSVC 19.44 x86 and x64 test builds" |
|
|---|
|
|---|
| data | | name | "RTTIBaseClassDescriptorAttributes" |
|---|
| underlying_type | "uint32_t" |
|---|
| values | | 1 | "BCD_PRIVATE_ON_PATH_1" |
|---|
| 2 | "BCD_AMBIGUOUS" |
|---|
| 4 | "BCD_PRIVATE" |
|---|
| 8 | "BCD_PRIVATE_ON_PATH_8" |
|---|
| 16 | "BCD_VIRTUAL" |
|---|
| 64 | "BCD_HAS_CHD" |
|---|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "MSRTTIClass flags IsPrivateOnPath = 1 | 8, IsAmbiguous = 2, IsPrivate = 4, IsVirtual = 16, HasHierarchyDescriptor = 64" |
|---|
| repo | "https://github.com/llvm/llvm-project" |
|---|
| commit | "8cdfc2de74ce046bae08f3a423be85694f225f3b" |
|---|
| path | "clang/lib/CodeGen/MicrosoftCXXABI.cpp" |
|---|
| lines | "3662-3668, 3683-3711" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "cl.exe 19.44: public non-virtual bases have attributes 0x40 (??_R1...EA@), a public virtual base 0x50 (??_R1A@A@3FA@Base@zoo@@8, undname: 'at (0,0,4,80)')." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "RTTI BaseClassDescriptor attributes" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T06:28:48.101Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:49:23.974Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read MicrosoftCXXABI.cpp at 8cdfc2de lines 3657-3668: MSRTTIClass enum IsPrivateOnPath = 1|8, IsAmbiguous 2, IsPrivate 4, IsVirtual 16, HasHierarchyDescriptor 64; matches the fact, which splits 1|8 into two bits; complete. The test-binary observations were not re-run." |
|---|
|
|
|---|