'declarator' : function cannot access 'name'
The code tries to modify a member variable, which is probably from a friend function, without specifying an object.
Example
class X { int a; friend void f(X *p) { a = 10; } // error };