C++ Compiler Error C2362
<p>The code is like this</p>

<pre><code>{
   int a;

     if( a == 0 )
     {
          std::string  str("some");
          goto CLEANUP;
     }


return;
CLEANUP: 
     printf("CLEANUP");


}
</code></pre>

<p>this is giving me error Compiler Error C2362
initialization of 'identifier' is skipped by 'goto label'</p>

<p>I moved <em>std::string  str("some");</em> after <em>int a;</em> still it is giving me same error</p>
