1 2 3 4 5 6 7 8 9 10 11 12 13 14
// Build don't link: // GROUPS passed visibility struct base { protected: void base_func() {}// ERROR - .*is protected.* }; struct derived : public base { protected: void derived_func(base *ptr) { ptr->base_func(); }// ERROR - within this context };