[Bug libstdc++/26907] Two times filebuf::sungetc() at beginning of file gives undefined result
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Tue Mar 28 17:38:00 GMT 2006
------- Comment #1 from pcarlini at suse dot de 2006-03-28 17:38 -------
There is nothing wrong with the current behavior: simply, at the beginning of
the file a putback position cannot be made available (i.e., a seek "-1" fails),
and, consistently, sungetc() returns traits::eof(), it suffices to check the
return value. By the way, the current behavior is totally intended,
libstdc++/9439 completely clarified it (useful for some citations from the
Standard, but the key point is simply that the unavoidable low level seek
fails).
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26907
More information about the Gcc-bugs
mailing list