title: C++0x decltype and the scope resolution operator
body: <p>With a class such as Foo:</p>
  
  <pre><code>struct Foo { static const int i = 9; };
  </code></pre>
  
  <p>I find that GCC 4.5 will reject the following</p>
  
  <pre><code>Foo f;
  int x = decltype(f)::i;
  </code></pre>
  
  <p>It will work if I use an intermediate typedef, such as:</p>
  
  <pre><code>typedef decltype(f) ftype;
  int x = ftype::i;
  </code></pre>
  
  <p>but I prefer to keep the namespace clean. I thought precedence may be an issue, so I've also tried parentheses, but no luck. Is it impossible as presented, or is there a piece of syntax that can help me?</p>