Index: include/sstream =================================================================== --- include/sstream +++ include/sstream @@ -243,7 +243,6 @@ : __hm_(0), __mode_(__wch) { - str(string_type()); } template Index: test/std/input.output/string.streams/stringbuf/stringbuf.cons/default.pass.cpp =================================================================== --- test/std/input.output/string.streams/stringbuf/stringbuf.cons/default.pass.cpp +++ test/std/input.output/string.streams/stringbuf/stringbuf.cons/default.pass.cpp @@ -17,6 +17,21 @@ #include #include +template +struct testbuf + : std::basic_stringbuf +{ + void check() + { + assert(this->eback() == 0); + assert(this->gptr() == 0); + assert(this->egptr() == 0); + assert(this->pbase() == 0); + assert(this->pptr() == 0); + assert(this->epptr() == 0); + } +}; + int main() { { @@ -27,4 +42,12 @@ std::wstringbuf buf; assert(buf.str() == L""); } + { + testbuf buf; + buf.check(); + } + { + testbuf buf; + buf.check(); + } }