title: Namespace using declaration (bug in GCC/VS2010)?
body: <pre><code>namespace A{
     int i;
  }
  
  int main(){
     using A::i;
     using A::i;
  }
  </code></pre>
  
  <p>VS2010 - compiles fine</p>
  
  <p>gcc (ideone) - compiles fine</p>
  
  <p>Comeau - gives error ""ComeauTest.c", line 10: error: "i" has already been declared in the current scope
       using A::i;"</p>
  
  <blockquote>
    <p>$7.3.3/8 - "A using-declaration is a
    declaration and can therefore be used
    repeatedly where (and only where)
    multiple declarations are allowed."</p>
  </blockquote>
  
  <p>The example right there indicates that the code is indeed ill-formed.</p>
  
  <p>So, is this a bug in GCC and VS2010?</p>
  
  <p>EDIT 2:</p>
  
  <p>Remove the multiple <code>using directives</code> as it was unrelated to the query on hand.</p>