title: std stringstream bug on clang compiler: can not extract string to pointer;
body: <p>here sample code how to get this error on compiler clang</p>
  
  <pre><code>std::stringstream sstream;
  int val = 10;
  sstream &lt;&lt; static_cast&lt;void*&gt;(&amp;val); //"0x7fff5fbff94c"
  void* ptr = nullptr;
  sstream &gt;&gt; ptr; //0x7fff5
  bool match = ptr == &amp;val; //false
  auto status = sstream.rdstate(); // 2- failbit
  </code></pre>
  
  <p>this error occur only on Clang compiler:
  <a href="http://melpon.org/wandbox/permlink/wLwz0B1MDn2qDMId" rel="nofollow">http://melpon.org/wandbox/permlink/wLwz0B1MDn2qDMId</a></p>
  
  <p>can i do something wrong or this is a really clang bug?</p>