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() == NULL); + assert(this->gptr() == NULL); + assert(this->egptr() == NULL); + assert(this->pbase() == NULL); + assert(this->pptr() == NULL); + assert(this->epptr() == NULL); + } +}; + int main() { { @@ -27,4 +42,12 @@ std::wstringbuf buf; assert(buf.str() == L""); } + { + testbuf buf; + buf.check(); + } + { + testbuf buf; + buf.check(); + } }