title: gcc fails to compile static function in namespace
body: <p>I have the following declaration.</p>
  
  <pre><code>namespace test{
  static cl_option* find_opt(const int &amp;val, const cl_option *options);
  }
  
  test::cl_option* test::find_opt(const int &amp;val, cl_option *options){}
  </code></pre>
  
  <p>The problem is when compiling I get the following error.</p>
  
  <pre><code>error: ‘test::cl_option* test::find_opt(const int&amp;, test::cl_option*)’ should have been declared inside ‘test’
  </code></pre>
  
  <p>Thanks in advance</p>