https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37522
--- Comment #19 from Jonathan Wakely <redi at gcc dot gnu.org> --- Author: redi Date: Thu May 28 16:27:46 2015 New Revision: 223840 URL: https://gcc.gnu.org/viewcvs?rev=223840&root=gcc&view=rev Log: Backport from mainline 2014-12-22 Jonathan Wakely <jwak...@redhat.com> PR libstdc++/37522 * include/bits/basic_string.h (stod, stof, stoi, stol, stold, stoll, stoul, stoull, to_string): Only use _GLIBCXX_HAVE_BROKEN_VSWPRINTF to guard definition of to_wstring. Modified: branches/gcc-4_9-branch/libstdc++-v3/ChangeLog branches/gcc-4_9-branch/libstdc++-v3/include/bits/basic_string.h