title: Invalid use of auto
body: <p>In this code:  </p>
  
  <pre><code>for ( ;(auto i = std::find(some_string.begin(),some_string.end(),'%')) != some_string.end();)
      {
  
      }  
  </code></pre>
  
  <p>I'm getting error from gcc 4.7.1:  </p>
  
  <pre><code>error: invalid use of 'auto'|   
  </code></pre>
  
  <p>any ideas why? shouldn't that be correctly compiled?</p>