This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]