diff options
| author | Paolo Carlini <pcarlini@suse.de> | 2006-03-08 09:44:56 +0000 |
|---|---|---|
| committer | Paolo Carlini <paolo@gcc.gnu.org> | 2006-03-08 09:44:56 +0000 |
| commit | 634a11f7bf6f032aa190aa5355a1d4eea710dc28 (patch) | |
| tree | 56c888c4772f2f5c4d05cb4eeb262cb63f3ffb0e /libstdc++-v3/src | |
| parent | 50d5ff7d8f100436b3646ca1a81ca9ebfa9944d3 (diff) | |
| download | gcc-634a11f7bf6f032aa190aa5355a1d4eea710dc28.tar.gz gcc-634a11f7bf6f032aa190aa5355a1d4eea710dc28.tar.bz2 gcc-634a11f7bf6f032aa190aa5355a1d4eea710dc28.zip | |
Implement the resolution of DR 455, [DR].
2006-03-08 Paolo Carlini <pcarlini@suse.de>
Implement the resolution of DR 455, [DR].
* src/ios_init.cc (ios_base::Init::Init()): Do it.
* testsuite/27_io/objects/char/dr455.cc: New.
* testsuite/27_io/objects/wchar_t/dr455.cc: Likewise.
* docs/html/ext/howto.html: Add an entry for DR 455.
From-SVN: r111842
Diffstat (limited to 'libstdc++-v3/src')
| -rw-r--r-- | libstdc++-v3/src/ios_init.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libstdc++-v3/src/ios_init.cc b/libstdc++-v3/src/ios_init.cc index 7e3028e8453..93a39857bc7 100644 --- a/libstdc++-v3/src/ios_init.cc +++ b/libstdc++-v3/src/ios_init.cc @@ -1,6 +1,6 @@ // Iostreams base classes -*- C++ -*- -// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 // Free Software Foundation, Inc. // // This file is part of the GNU ISO C++ Library. This library is free @@ -99,7 +99,10 @@ _GLIBCXX_BEGIN_NAMESPACE(std) new (&clog) ostream(&buf_cerr_sync); cin.tie(&cout); cerr.flags(ios_base::unitbuf); - + // _GLIBCXX_RESOLVE_LIB_DEFECTS + // 455. cerr::tie() and wcerr::tie() are overspecified. + cerr.tie(&cout); + #ifdef _GLIBCXX_USE_WCHAR_T new (&buf_wcout_sync) stdio_sync_filebuf<wchar_t>(stdout); new (&buf_wcin_sync) stdio_sync_filebuf<wchar_t>(stdin); @@ -111,6 +114,7 @@ _GLIBCXX_BEGIN_NAMESPACE(std) new (&wclog) wostream(&buf_wcerr_sync); wcin.tie(&wcout); wcerr.flags(ios_base::unitbuf); + wcerr.tie(&wcout); #endif // NB: Have to set refcount above one, so that standard |
