This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: libstdc++/5268: More fun with global stream destruction semantics
- From: "Simpson, Kenny" <Kenny dot Simpson at gs dot com>
- To: "'paolo at gcc dot gnu dot org'" <paolo at gcc dot gnu dot org>,"'gcc-bugs at gcc dot gnu dot org'" <gcc-bugs at gcc dot gnu dot org>,"'gcc-prs at gcc dot gnu dot org'" <gcc-prs at gcc dot gnu dot org>,"Simpson, Kenny" <Kenny dot Simpson at gs dot com>,"'nobody at gcc dot gnu dot org'" <nobody at gcc dot gnu dot org>,"'theonetruekenny at yahoo dot com'" <theonetruekenny at yahoo dot com>,"'gcc-gnats at gcc dot gnu dot org'" <gcc-gnats at gcc dot gnu dot org>
- Date: Wed, 9 Jan 2002 17:37:02 -0500
- Subject: RE: libstdc++/5268: More fun with global stream destruction semantics
Ok, here is a better (compilable) test:
#include <iostream> // for std::cout
#include <ostream> // for std::ostream
#include <sstream> // for basic_stringbuf and stringbuf typedef
int main()
{
std::stringbuf b1;
std::cout.rdbuf( &b1 );
std::cout << "hello\n";
return 0;
}