------- Comment #6 from paolo dot carlini at oracle dot com 2009-02-12 17:53 ------- Actually, libstdc++ stores 123456, which is indeed fine, and sets failbit | eofbit, failbit exactly because of the issue discussed here.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39168