http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60711
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- This is not a bug in GCC, your code is simply incorrect. std::basic_ostream is only usable as a base class, not the way you're trying to use it. Please find somewhere more suitable to solve your problem, such as http://stackoverflow.com