title: inline in block scope function declaration
body: <p>What does the following means?</p>
  
  <blockquote>
    <p><strong>ISO/IEC 14882:2011</strong></p>
    
    <p>7.1.2 Function specifiers [dcl.fct.spec]
    ...<br>
    3 ... The inline specifier shall not appear on a block scope function
    declaration.</p>
  </blockquote>
  
  <p>Is smth like this is invalid according to this quote or not?</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  int main()
  {
      inline void foo();
      foo();
  }
  
  void foo()
  {
      std::cout &lt;&lt; "::foo() \n";
  }
  </code></pre>
  
  <p>gcc compiles it without any error.</p>
  
  <p>Am i wrong or not?</p>