Compiler Warning (level 1) C4243

'conversion type' conversion exists from 'type1' to 'type2', but is inaccessible

A pointer to a derived class was converted to a pointer to a base class, but the derived class inherited the base class with private or protected access.

The following is an example of this warning:

class B {};
class D : private B {};

D d;
B *q = (B*)&d;;      // warning