------- Comment #5 from jwakely dot gcc at gmail dot com 2009-06-10 10:42 ------- (In reply to comment #4) > > You shoudl either pass a null pointer to the base class, then call > m_buf.init()
Oops, I got that a bit wrong, don't pass a null pointer to the base constructor. You should either call the default constructor of the base class, then call this->init(&m_buf) ... > in the MyStream constructor body, or use the base-from-member idiom to > initialise m_buf before the base class. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40391