http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59472
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- That should work for the streambufs, it's not so simple for the standard stream objects though, as they're user-visible and we declared their (pretend) types in <iostream>.