PR libstdc++/81256 fix exception handling in basic_filebuf::close
authorJonathan Wakely <jwakely@redhat.com>
Mon, 14 May 2018 18:57:45 +0000 (19:57 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 14 May 2018 18:57:45 +0000 (19:57 +0100)
commite77497ab777d3dfa19224648d658220807ab7419
treed5fba065c2bb36115f0dd1d56dfcc530062c568d
parent10c54e5b0e098b5b1e7a0b79716bc113fe96c45e
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.

From-SVN: r260236
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/fstream.tcc
libstdc++-v3/include/std/fstream
libstdc++-v3/testsuite/27_io/basic_filebuf/close/81256.cc [new file with mode: 0644]