[llvm-bugs] [Bug 52157] New: sync() not setting rdstate on certain errors
llvm-bugs at lists.llvm.org
Tue Oct 12 12:32:10 PDT 2021
Bug ID: 52157
Summary: sync() not setting rdstate on certain errors
Component: All Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: edward.vogel at hpe.com
CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
The code in istream that implements sync contains:
if (this->rdbuf()->pubsync() == -1)
__state |= ios_base::badbit;
I believe this is wrong. There needs to be a call to:
before the return. Older versions got this right.
Not a bad problem, but I thought I'd report it.
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs