Open llvmbot opened 8 years ago
This issue also seems to have the same root cause as llvm/llvm-bugzilla-archive#32180 .
This issue looks related to (or is a duplicate of) issue 19795: llvm/llvm-project#20169
I have also hit this bug, both on Xcode and on top-of-tree Clang. My test case is exactly isomorphic to Maxim's test case.
Extended Description
So, availability of casting to base depends on how ancestor classes are ordered in the inheritance list.