[Bug libstdc++/11544] wifstream conversion errors result in wrong rdstate()
peturr02 at ru dot is
gcc-bugzilla@gcc.gnu.org
Wed Oct 8 12:41:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11544
------- Additional Comments From peturr02 at ru dot is 2003-10-08 12:41 -------
Paolo Carlini wrote:
> ... perhaps you believe that rdbuf->sbumpc() should throw an exception in
> this case?
I think that is the only useful solution. Note that there are other reasons
for doing that, such as the one mentioned in PR 11603: If sbumpc() returns
eof() on conversion errors, showmanyc() must always return 0. If showmanyc()
is to be useful, sbumpc() must throw an exception on conversion errors.
More information about the Gcc-bugs
mailing list