[LLVMbugs] [Bug 16427] New: Incorrect handling of delimiters in std::basic_istream::ignore

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jun 23 17:22:07 PDT 2013


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

            Bug ID: 16427
           Summary: Incorrect handling of delimiters in
                    std::basic_istream::ignore
           Product: libc++
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: hhinnant at apple.com
          Reporter: cnweaver at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10747
  --> http://llvm.org/bugs/attachment.cgi?id=10747&action=edit
test program

When called with the default delimiter (EOF) basic_istream<char>::ignore seems
to stop at bytes with a value of 0xFF, possibly because the delimiter is cast
to char_type for comparison with characters read from the input. The attached
testcase demonstrates this; it runs without output when compiled against
libstdc++ but asserts when compiled against libc++.

-- 
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/20130624/42d830df/attachment.html>


More information about the llvm-bugs mailing list