<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:mclow.lists@gmail.com" title="Marshall Clow (home) <mclow.lists@gmail.com>"> <span class="fn">Marshall Clow (home)</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - failed stream extraction consumes characters after clear (libstdc++ vs libc++)"
   href="http://llvm.org/bugs/show_bug.cgi?id=19354">bug 19354</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>DUPLICATE
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - failed stream extraction consumes characters after clear (libstdc++ vs libc++)"
   href="http://llvm.org/bugs/show_bug.cgi?id=19354#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED DUPLICATE - failed stream extraction consumes characters after clear (libstdc++ vs libc++)"
   href="http://llvm.org/bugs/show_bug.cgi?id=19354">bug 19354</a>
              from <span class="vcard"><a class="email" href="mailto:mclow.lists@gmail.com" title="Marshall Clow (home) <mclow.lists@gmail.com>"> <span class="fn">Marshall Clow (home)</span></a>
</span></b>
        <pre>Thanks for the report.

I believe that this is a duplicate of
<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - num_get::do_get(in, end, double) broken if double is followed by character"
   href="show_bug.cgi?id=17782">http://llvm.org/bugs/show_bug.cgi?id=17782</a>.

What's happening here is that libc++ is attempting to parse this as a hex
float.
[ You have to dig into the C standard to find out about that.. ]

If you change the string to "zyx", both libc++ and libstdc++ print 0.

I've added your example to that bug.

*** This bug has been marked as a duplicate of <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - num_get::do_get(in, end, double) broken if double is followed by character"
   href="show_bug.cgi?id=17782">bug 17782</a> ***</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>