[Bug libstdc++/81256] basic_filebuf::close doesn't propagate exceptions
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 14 18:58:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81256
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Mon May 14 18:57:45 2018
New Revision: 260236
URL: https://gcc.gnu.org/viewcvs?rev=260236&root=gcc&view=rev
Log:
PR libstdc++/81256 fix exception handling in basic_filebuf::close
PR libstdc++/81256
* include/bits/fstream.tcc (basic_filebuf::close): Do not swallow
exceptions from _M_terminate_output().
* include/std/fstream (basic_filebuf::~basic_filebuf): Swallow any
exceptions from close().
* testsuite/27_io/basic_filebuf/close/81256.cc: New.
Added:
trunk/libstdc++-v3/testsuite/27_io/basic_filebuf/close/81256.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/bits/fstream.tcc
trunk/libstdc++-v3/include/std/fstream
More information about the Gcc-bugs
mailing list