This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/25653] Documentation bug in ext/stdio_filebuf.h



------- 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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]