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


Reply via email to