libstdc++/5268: More fun with global stream destruction semantics
Simpson, Kenny
Kenny.Simpson@gs.com
Wed Jan 9 14:46:00 GMT 2002
The following reply was made to PR libstdc++/5268; it has been noted by GNATS.
From: "Simpson, Kenny" <Kenny.Simpson@gs.com>
To: "'paolo@gcc.gnu.org'" <paolo@gcc.gnu.org>,
"'gcc-bugs@gcc.gnu.org'" <gcc-bugs@gcc.gnu.org>,
"'gcc-prs@gcc.gnu.org'" <gcc-prs@gcc.gnu.org>,
"Simpson, Kenny" <Kenny.Simpson@gs.com>,
"'nobody@gcc.gnu.org'" <nobody@gcc.gnu.org>,
"'theonetruekenny@yahoo.com'" <theonetruekenny@yahoo.com>,
"'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>
Cc:
Subject: RE: libstdc++/5268: More fun with global stream destruction semantics
Date: Wed, 9 Jan 2002 17:37:02 -0500
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;
}
More information about the Gcc-prs
mailing list