This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60959] Does âcout<<(char*)NULLâ doing âclose(1)â ?
- From: "sree.gooogle at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 25 Apr 2014 03:00:46 +0000
- Subject: [Bug c++/60959] Does âcout<<(char*)NULLâ doing âclose(1)â ?
- Auto-submitted: auto-generated
- References: <bug-60959-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60959
--- Comment #2 from Sreenath U S <sree.gooogle at gmail dot com> ---
"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?