++
Assignee: unassigned at gcc dot gnu.org
Reporter: sree.gooogle at gmail dot com
In the following piece of C++ code I have used cout(char*)NULL; after this
line, my program printing nothing to the output screen. Does it mean I have
done close(1) with cout here?
#includeiostream
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?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60959
--- Comment #4 from Sreenath U S sree.gooogle at gmail dot com ---
Okay Thanks. One more thing, Is there any way to make the remaining cout
statements to get printed in gcc without removing the faulty
cout(char*)NULL;?
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: sree.gooogle at gmail dot com
Created attachment 32242
-- http://gcc.gnu.org/bugzilla/attachment.cgi?id=32242action=edit
c program used for Segmentation fault at line
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60388
Sreenath U S sree.gooogle at gmail dot com changed:
What|Removed |Added
Keywords||diagnostic