[Bug libstdc++/12875] Weird behaviour in basic_filebuf::setbuf()
paolo at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Nov 8 16:50:00 GMT 2003
------- Additional Comments From paolo at gcc dot gnu dot org 2003-11-08 16:50 -------
N.B.: currently we have another (latent) problem related to this one:
if setbuf(s != 0, n > 0) is called *before* open(), the buffer
provided by the user is not used! That's because open() calls always
_M_allocate_internal_buffer() and the latter finds !_M_buf_allocated
true && this->_M_buf_size > 0.
Will fix and provide a testcase for this problem too.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12875
More information about the Gcc-bugs
mailing list