swift
9e35a175 - [cxx-interop] Members of private base classes should not be exposed

Commit
2 years ago
[cxx-interop] Members of private base classes should not be exposed Trying to use members of C++ private base classes from Swift causes an assertion failure in ClangImporter: ``` <build dir>/swift/lib/swift/macosx/arm64/libcxxshim.h:2:66: error: cannot cast 'A' to its private base class 'B' To __swift_interopStaticCast(From from) { return static_cast<To>(from); } ^ ``` Such members should not be exposed. rdar://103871000
Author
Parents
Loading