This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/47275] ofstream::put(255) results in bad stream when built with -fsigned-char on platforms that default to unsigned char
- From: "schwab at linux-m68k dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 13 Jan 2011 16:56:58 +0000
- Subject: [Bug libstdc++/47275] ofstream::put(255) results in bad stream when built with -fsigned-char on platforms that default to unsigned char
- Auto-submitted: auto-generated
- References: <bug-47275-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47275
--- Comment #4 from Andreas Schwab <schwab@linux-m68k.org> 2011-01-13 16:56:55 UTC ---
By changing the signedness of char you change the ABI and everything must use
the same ABI.