------- Comment #42 from paolo dot carlini at oracle dot com 2010-09-17 19:10 ------- Before any other bug or analysis, I would recommend going back to the ton of discussions in 2002 / 2003 when the design of basic_filebuf has been changed to use _M_reading and _M_writing, **on purpose**. Didn't happen by chance, was a deliberate redesign of the previous design which allowed major performance improvements. And, to be clear, nobody complained anymore, *ever* all these years. After you have analyzed those discussions (look in particular for Nathan Myers and me), we can consider, for the future, alternate designs.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45628