Compiler Warning (level 3) C4249
'class1' : no path to 'access' 'member' declared in virtual base 'class2'
A member of the virtual base class cannot be accessed from the derived class because the derived class does not have access rights. The member was not accessed.
To avoid this warning, give class1 access to members of class2 by changing the class access specifier or using the friend specifier.