Error: X does not name a type
<p>What is wrong with this code:</p>

<pre><code>class C {
  public:
  int h();
};

C he;          //Fine
he.h();        //Error: 'he' does not name a type

int main() {
  C me;           //Fine
  me.h();         //Fine
}
</code></pre>

<p>Using MinGW 4.6.2.</p>

<p><em><strong>Note</em></strong>: I am only compiling, not linking.</p>
