[LLVMbugs] [Bug 14358] New: implementation problem with istreambuf_iterator operator++
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Nov 15 15:24:04 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=14358
Bug #: 14358
Summary: implementation problem with istreambuf_iterator
operator++
Product: libc++
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
AssignedTo: hhinnant at apple.com
ReportedBy: kdt3rd at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 9550
--> http://llvm.org/bugs/attachment.cgi?id=9550
proposed patch to fix
per 24.6.3.4, the effect of operator++ should only be to call sbumpc on the
streambuf, not to actually trigger a sgetc which will cause underflow to
happen.
per 24.6.3.5, the effect of operator++(int) is similarly not currently correct
Attached is a patch which I believe fixes the issue.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list