[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?=?
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 25 03:05:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60959
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Sreenath U S from comment #2)
> "sets the badbit on the stream which causes nothing to be printed after
> that."; So this is a defined behavior or it varies on compiler to compiler?
I think it is undefined behavior, GCC decides to play it safe.
More information about the Gcc-bugs
mailing list