ISO C++ forbids forward references to 'enum' types : <p>Given the program:</p>

<pre><code>enum E : int
{
    A, B, C
};
</code></pre>

<p><code>g++ -c test.cpp</code> works just fine. However, <code>clang++ -c test.cpp</code> gives the following errors:</p>

<pre><code>test.cpp:1:6: error: ISO C++ forbids forward references to 'enum' types
enum E : int
     ^
test.cpp:1:8: error: expected unqualified-id
enum E : int
       ^
2 errors generated.
</code></pre>

<p>These error messages don't make any sense to me. I don't see any forward references here.</p>
