https://bugs.llvm.org/show_bug.cgi?id=52157
Bug ID: 52157
Summary: sync() not setting rdstate on certain errors
Product: libc++
Version: 11.0
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P
Component: All Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
The code in istream that implements sync contains:
if (this->rdbuf()->pubsync() == -1)
{
__state |= ios_base::badbit;
return -1;
}
I believe this is wrong. There needs to be a call to:
this->setstate(__state);
before the return. Older versions got this right.
Not a bad problem, but I thought I'd report it.
Thank you,
Ed Vogel
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs