title: error: variable or field ‘myfunction’ declared void
body: <p>In the following, I haven't defined the type <code>doesntexist</code>.</p>
  
  <pre><code>void myfunction(doesntexist argument)
  {
  }
  </code></pre>
  
  <p>GCC 4.7.2 says "<code>error: variable or field ‘myfunction’ declared void</code>"</p>
  
  <p>My question is this: <em>What's going through the compilers mind here to refer to the function name being void and not the argument type?</em></p>
  
  <p>[<em>EDIT</em>]<br/>
  Before downvoting, be aware the answer to this issue is related to <strong>the order of the errors and <code>-Wfatal-errors</code> stopping the more immediately relevant message from being printed</strong>. This is not simply me having a go at a slightly vague compiler message.</p>