[Bug c++/60959]=?UTF-8?Q?=20Does=20=E2=80=9Ccout?=<<(char*)=?UTF-8?Q?NULL=E2=80=9D=20doing=20=E2=80=9Cclose?=(1)=?UTF-8?Q?=E2=80=9D=20?=?
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 25 10:03:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60959
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Andrew is correct, the standard says:
Requires: s shall not be a null pointer.
So your program has undefined behaviour and should be fixed.
You can clear the badbit with cout.clear()
More information about the Gcc-bugs
mailing list