[Bug middle-end/40391] Segfault with -O, iostream, anonymous namespace on PPC
jwakely dot gcc at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jun 10 10:42:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list