Ran the program with some slight modifications and couldn&#x27;t reproduce it<p><pre><code>   #include &lt;iostream&gt;
   #include &lt;sstream&gt;
   int main(int c, char **v) {
       std::stringstream s(&quot;1.5&quot;);
       double x; s &gt;&gt; x;
       return x == 1.5 ? 0 : 1;
   }

</code></pre>
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin15.2.0
Thread model: posix