[Bug libstdc++/26250] stringbuf::overflow() fails to set egptr() same as epptr()
paolo at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Feb 17 10:47:00 GMT 2006
------- Comment #8 from paolo at gcc dot gnu dot org 2006-02-17 10:47 -------
Subject: Bug 26250
Author: paolo
Date: Fri Feb 17 10:46:57 2006
New Revision: 111177
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111177
Log:
2006-02-17 Paolo Carlini <pcarlini@suse.de>
Howard Hinnant <hhinnant@apple.com>
PR libstdc++/26250
* include/bits/sstream.tcc (basic_stringbuf<>::overflow): Tweak
to leave epgtr() just past the new write position, as per the
relevant bits of 27.7.1.3/8 (not changed by DR 432).
* testsuite/27_io/basic_stringbuf/overflow/char/26250.cc: New.
* testsuite/27_io/basic_stringbuf/overflow/wchar_t/26250.cc: Same.
* docs/html/ext/howto.html: Add entries for DR 169 and DR 432.
* include/std/std_sstream.h (basic_stringbuf<>::_M_sync): Move out
of line...
* include/bits/sstream.tcc: ... here.
Added:
trunk/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/char/26250.cc
trunk/libstdc++-v3/testsuite/27_io/basic_stringbuf/overflow/wchar_t/26250.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/docs/html/ext/howto.html
trunk/libstdc++-v3/include/bits/sstream.tcc
trunk/libstdc++-v3/include/std/std_sstream.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26250
More information about the Gcc-bugs
mailing list