]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/26777.cc
re PR libstdc++/26777 (sync_with_stdio(false) triggers bug with sgetc and pubseekoff)
authorPaolo Carlini <pcarlini@suse.de>
Wed, 22 Mar 2006 15:13:46 +0000 (15:13 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 22 Mar 2006 15:13:46 +0000 (15:13 +0000)
commitd4d21a01033746a16474156ce30342683afefe3b
tree23c99d78978096a0b5127b46241f21d4d182b031
parentf328a23a4650e984e5b3fd92ca0c8daf2f81be00
re PR libstdc++/26777 (sync_with_stdio(false) triggers bug with sgetc and pubseekoff)

2006-03-22  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/26777
* include/bits/fstream.tcc (basic_filebuf<>::_M_seek): Check
the return value of _M_file.seekoff.
* testsuite/27_io/basic_filebuf/seekoff/char/26777.cc: New.

From-SVN: r112286
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc
libstdc++-v3/testsuite/27_io/basic_filebuf/seekoff/char/26777.cc [new file with mode: 0644]