[Bug ipa/86274] [7/8/9 Regression] SEGFAULT when logging std::to_string(NAN)
floop at floop dot cz
gcc-bugzilla@gcc.gnu.org
Tue Jun 26 09:31:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86274
--- Comment #3 from Filip Matzner <floop at floop dot cz> ---
Thank you for digging into this. I actually hit the issue in a large code base
that crashed even without printing anything to boost log. But when cutting off
parts of the code, the error happened nondeterministically, so it was a bit
difficult to build a minimal working example. The posted example was the most
reasonable working example I could come up with.
As a workaround in the large code base, I replaced std::to_string calls with
boost::lexical_cast.
More information about the Gcc-bugs
mailing list