[LLVMbugs] [Bug 15337] Crash when destructing object from class deriving from std::ostream (using default constructor)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 22 19:36:16 PST 2013


Howard Hinnant <hhinnant at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Howard Hinnant <hhinnant at apple.com> ---
Yeah, don't use this:

    basic_ostream() {}  // extension, intentially does not initialize

This is essentially an implementation detail of the basic_iostream constructor
and avoids doubly initializing the underlying basic_ios.

You should instead call this constructor:

basic_ostream(basic_streambuf<char_type,traits>* sb);

with an appropriate streambuf pointer.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130223/ab3688d4/attachment.html>

More information about the llvm-bugs mailing list