title: C++ error tracking unexpected token
body: <p>After some refactoring and changes to a C++ class, an error occured. The strange thing is that the error is not located in my .cpp file, but in an external include file (OpenSceneGraph) which worked fine until now.</p>
  <p>In the osg/Object file there is the following enum</p>
  <pre><code>enum DataVariance
  {
      DYNAMIC,
      STATIC,
      UNSPECIFIED
  };
  </code></pre>
  <p>which results in a syntax error. When I change <code>STATIC</code> to <code>STATIc</code>, everything compiles fine.</p>
  <blockquote>
  <p>error C2059: syntax error: 'static '</p>
  <p>error C3805: 'Typ': unexpected token, expected either '}' or ','</p>
  </blockquote>
  <p>I didn't change a thing in OpenSceneGraph, only refactored some code in a class using OpenSceneGraph and the error suddenly appeared.
  The whole compiler output talks about errors in the external code.</p>
  <p>How can I extract the real point of failure in my own code from the compiler output? I think it's just something stupid, but I have no idea where to search for the mistake.</p>
  <p>(I can't just change the code of OpenSceneGraph)</p>