[Bug libstdc++/26458] Passing a NULL char* into output stream now breaks the output stream
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Sun Mar 13 13:11:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26458
--- Comment #12 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-03-13 13:11:38 UTC ---
Ian, I see you are returning to this old issue. Really, today I don't have a
strong opinion, if you are willing to post to the mailing list a patchlet (I
think both std/ostream and bits/ostream.tcc have to be touched + adjusting the
testsuite) outputting "(null)" instead of setting badbit I have no objections
(to be clear, I didn't decide or existing impl defined behavior, thus we
serious reasons to hear the mailing list before applying it). Only, I'm not
sure what we want to do for the "primary" overload,
operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*), maybe just do
nothing, I don't know, really, up to you (and the mailing list, again).
More information about the Gcc-bugs
mailing list