class foo { friend void bar(); friend void none(); template friend vector vec(); };