This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/11544] wifstream conversion errors result in wrong rdstate()


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]