[Bug ipa/86274] [7/8/9 Regression] SEGFAULT when logging std::to_string(NAN)

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Jun 25 17:31:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86274

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Created attachment 44319
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44319&action=edit
Preprocessed testcase

This is preprocessed with boost 1.64.0 and needs libboost_log.so from that
version to link. Maybe this is enough to compare the optimized dumps with and
without -fipa-cp-clone.

I also see that replacing the call to __builtin_memcpy with memcpy (in
char_traits::copy immediately after the __builtin_printf call) doesn't crash.


More information about the Gcc-bugs mailing list