Compilation failure for templated member of templated class. VC++ works but G++ fails
<p>The following code compiles fine under Visual C++ 2010, but not under GCC 4.6 from the Android NDK r8b.</p>

<pre><code>template&lt;typename A&gt;
struct foo
{
    template&lt;typename B&gt;
    B method()
    {
        return B();
    }
};

template&lt;typename A&gt;
struct bar
{
    bar()
    {
        f_.method&lt;int&gt;(); // error here
    }

private:
    foo&lt;A&gt; f_;
};
</code></pre>

<p>The error GCC gives is </p>

<pre><code>error : expected primary-expression before 'int'
error : expected ';' before 'int'
</code></pre>

<p>for the marked line. For the life of me I can't figure out whats wrong.</p>
