------- 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

Reply via email to