http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60724
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Fails in GCC 4.4.5 and GCC 4.7.0 with the same error message. Why don't you use ostringstream or wostringstream instead?