[Bug libstdc++/26211] [DR 419, US 137 / US 139] basic_istream::tellg, seekg are unformatted input functions

2010-11-18 Thread paolo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26211

--- Comment #8 from paolo at gcc dot gnu.org paolo at gcc dot gnu.org 
2010-11-18 17:21:44 UTC ---
Author: paolo
Date: Thu Nov 18 17:21:35 2010
New Revision: 166911

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=166911
Log:
2010-11-18  Paolo Carlini  paolo.carl...@oracle.com

PR libstdc++/26211 + N3168
* include/bits/istream.tcc (basic_istream::tellg, seekg(pos_type),
seekg(off_type, ios_base::seekdir)): Construct a sentry.
(basic_istream::tellg, seekg(pos_type), seekg(off_type,
ios_base::seekdir, putback, unget)): Clear eofbit first, per N3168.  
* testsuite/27_io/basic_istream/seekg/char/26211.cc: New.
* testsuite/27_io/basic_istream/seekg/wchar_t/26211.cc: Likewise.
* testsuite/27_io/basic_istream/tellg/char/26211.cc: Likewise.
* testsuite/27_io/basic_istream/tellg/wchar_t/26211.cc: Likewise.
* testsuite/27_io/basic_istream/tellg/char/8348.cc: Tweak.
* testsuite/27_io/basic_istream/tellg/wchar_t/8348.cc: Likewise.

Added:
trunk/libstdc++-v3/testsuite/27_io/basic_istream/seekg/char/26211.cc
trunk/libstdc++-v3/testsuite/27_io/basic_istream/seekg/wchar_t/26211.cc
trunk/libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/26211.cc
trunk/libstdc++-v3/testsuite/27_io/basic_istream/tellg/wchar_t/26211.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/istream.tcc
trunk/libstdc++-v3/testsuite/27_io/basic_istream/tellg/char/8348.cc
trunk/libstdc++-v3/testsuite/27_io/basic_istream/tellg/wchar_t/8348.cc


[Bug libstdc++/26211] [DR 419, US 137 / US 139] basic_istream::tellg, seekg are unformatted input functions

2010-11-18 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26211

Paolo Carlini paolo.carlini at oracle dot com changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED
   Target Milestone|--- |4.6.0

--- Comment #9 from Paolo Carlini paolo.carlini at oracle dot com 2010-11-18 
17:29:20 UTC ---
Reapplied together with the N3168 tweaks.


[Bug libstdc++/26211] [DR 419, US 137 / US 139] basic_istream::tellg, seekg are unformatted input functions

2010-08-11 Thread paolo dot carlini at oracle dot com


--- Comment #7 from paolo dot carlini at oracle dot com  2010-08-11 17:22 
---
The solution involves clearing eofbit first, see US 137 / US 139. Maybe we
should prototype it before Batavia.


-- 

paolo dot carlini at oracle dot com changed:

   What|Removed |Added

Summary|[DR 419]|[DR 419, US 137 / US 139]
   |basic_istream::tellg, seekg |basic_istream::tellg, seekg
   |are unformatted input   |are unformatted input
   |functions   |functions


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26211