This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/18678] Garbage output to std::wcout under some circumstances
- From: "rleigh at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Nov 2004 23:50:20 -0000
- Subject: [Bug libstdc++/18678] Garbage output to std::wcout under some circumstances
- References: <20041126002106.18678.rleigh@debian.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rleigh at debian dot org 2004-11-29 23:50 -------
Sorry about the renaming.
Even though you aren't supposed to intermix std::cout and std::wcout, surely it
would be nicer if the undefined behaviour was the same whichever you used first?
Currently:
std::cout, std::wcout
==> wcout is garbled
std::wcout, std::cout
==> cout is silently discarded
If it would discard the invalid stream in either order, it would at least be
predictable.
Thanks,
Roger
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18678