Eclipse CDT flags up a semantic error with forward delaclaration, but compiles with no errors
<p>Is there a way to configure Eclipse so that it can resolve the following forward declaration example? <br />
This builds without any problems.</p>

<pre><code>class MyClass {
public:
  enum class MyEnum; // Forward declaration.
  enum class MyOtherEnum {
    DELTA,
    ECHO,
    FOXTROT
  };
};

enum class MyClass::MyEnum{
  ALPHA,
  BRAVO,
  CHARLIE
};

int main(void) {
  volatile MyClass::MyEnum myVariable = MyClass::MyEnum::BRAVO; // Flags up two semantic errors.
  volatile MyClass::MyOtherEnum myOtherVariable = MyClass::MyOtherEnum::ECHO; // No problems.
  return 0;
}
</code></pre>

<p>Semantic Errors: <br />
Symbol 'BRAVO' could not be resolved. <br />
Type 'MyClass::MyEnum' could not be resolved.</p>

<p>Using Eclipse CDT Mars.2 Release (4.5.2).</p>