[Bug libstdc++/25653] Documentation bug in ext/stdio_filebuf.h
pcarlini at suse dot de
gcc-bugzilla@gcc.gnu.org
Tue Jan 3 22:42:00 GMT 2006
------- Comment #2 from pcarlini at suse dot de 2006-01-03 22:42 -------
(In reply to comment #1)
> On further investigation, it looks like when a stdio_filebuf is destroyed,
> this will ultimately invoke __basic_file<char>::close(). This calls fclose().
I think this is not true for the constructor at issue, taking a FILE, because
_M_cfile_created is set to false by the corresponding __basic_file<>::sys_open
and in this case __basic_file<>::close() does not call fclose: please, have
another look to basic_file_stdio.cc. In other terms, I think the documentation
is correct as-is.
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25653
More information about the Gcc-bugs
mailing list