Friends of B are on equal footing to members of B
Upcasting to a private or protected base A is restricted
See also the The C++ Programming Language formulations of the rules page 406