[LLVMbugs] [Bug 19354] failed stream extraction consumes characters after clear (libstdc++ vs libc++)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 7 08:31:35 PDT 2014


http://llvm.org/bugs/show_bug.cgi?id=19354

Marshall Clow (home) <mclow.lists at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Marshall Clow (home) <mclow.lists at gmail.com> ---
Thanks for the report.

I believe that this is a duplicate of
http://llvm.org/bugs/show_bug.cgi?id=17782.

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 bug 17782 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140407/341d104f/attachment.html>


More information about the llvm-bugs mailing list