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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs