http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59427
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Mon Dec 9 23:02:18 2013 New Revision: 205837 URL: http://gcc.gnu.org/viewcvs?rev=205837&root=gcc&view=rev Log: 2013-12-09 Paolo Carlini <paolo.carl...@oracle.com> PR libstdc++/59427 * include/bits/fstream.tcc (basic_filebuf<>::overflow, basic_filebuf<>::xsputn): Per lwg/596, ios_base::app implies ios_base:out. * include/std/fstream (basic_filebuf<>::_M_set_buffer): Likewise. * testsuite/27_io/basic_filebuf/sputc/char/59427.cc: New. * testsuite/27_io/basic_filebuf/sputn/char/59427.cc: Likewise. Added: trunk/libstdc++-v3/testsuite/27_io/basic_filebuf/sputc/char/59427.cc trunk/libstdc++-v3/testsuite/27_io/basic_filebuf/sputn/char/59427.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/bits/fstream.tcc trunk/libstdc++-v3/include/std/fstream