------- Comment #8 from jwakely dot gcc at gmail dot com 2009-06-10 13:09 ------- (In reply to comment #6) > According to my copy of ISO 14992:1998, std::iostream does not have a default > constructor. However, my reading of the standard leads me to believe that it > is valid to pass a null pointer. The description for basic_ios::init() > (27.4.4.1) says that, as a postcondition, rdstate() is "goodbit if sb is not a > null pointer, otherwise badbit".
You're right, I should have checked before replying. > Can someone please do me a favor and test this with a more current version of > gcc? I can't test on ppc. Where is the segfault? gdb or valgrind should tell you. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40391