r267534 - [MSVC] PR27337: allow static_cast from private base to derived for WTL

Stephan T. Lavavej via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 27 12:09:10 PDT 2016


[Richard Smith]
> You can find a description of the problem in http://llvm.org/PR27337
> Brief summary:
> The WTL bug is the missing 'public' on the second base class on this line: https://sourceforge.net/p/wtl/code/HEAD/tree/trunk/wtl/Samples/MDIDocVw/mainfrm.h#l636
> The C1xx bug is that it accepts a (non-C-style) cast from a base class to an inaccessible derived class.

Thanks, I've asked my boss if MS devs still maintain WTL and if so, who.

As for C1XX, I've filed VSO#216958 "C1XX shouldn't allow static_cast to bypass private inheritance" with a self-contained repro.

STL


More information about the cfe-commits mailing list