Definition of friend inside class
<p>Can i put definition of friend function / class inside another class? I mean something like this:</p>

<pre><code>class Foo
{
    friend void foo() {} // 1
    friend class Bar {}; // 2
};
</code></pre>

<p>gcc compiles friend function, but can't compile friend class.</p>
