This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/25653] Documentation bug in ext/stdio_filebuf.h
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jan 2006 22:42:15 -0000
- Subject: [Bug libstdc++/25653] Documentation bug in ext/stdio_filebuf.h
- References: <bug-25653-7852@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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