namespace N { struct SA { friend struct foo; }; } namespace N { struct foo; }