title: Member is inaccessible
body: <pre><code>class Example{
  public:
      friend void Clone::f(Example);
      Example(){
          x = 10;
      }
  private:
      int x;
  };
  
  class Clone{
  public:
      void f(Example ex){
          std::cout &lt;&lt; ex.x;
      }
  };
  </code></pre>
  
  <p>When I write f as a normal function, the program compiles successful. However, when I write f as a class member, this error occurs.</p>
  
  <p>Screenshot: <img src="https://s4.postimg.org/po0qiktr1/Untitled.png" alt=""></p>