[Bug tree-optimization/86274] [7 Regression] SEGFAULT when logging std::to_string(NAN)

2023-12-31 Thread jlame646 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86274

Jason Liam  changed:

   What|Removed |Added

 CC||jlame646 at gmail dot com

--- Comment #22 from Jason Liam  ---
Same issue. But also seg faults with o4 and gcc 7.5

https://godbolt.org/z/G7G7nx1Tf

#include 
#include 
#include 
#include 

void test() {
std::cout << std::to_string(0.f) << '\n'; // make it "0" and it wont crash
}

int main() {
std::cout << std::to_string(INFINITY) << '\n';
}

[Bug tree-optimization/86274] [7 Regression] SEGFAULT when logging std::to_string(NAN)

2019-11-14 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86274

Richard Biener  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
  Known to work||8.2.0
 Resolution|--- |FIXED
   Target Milestone|7.5 |8.2
  Known to fail||7.5.0

--- Comment #21 from Richard Biener  ---
Fixed in GCC 8.2.

[Bug tree-optimization/86274] [7 Regression] SEGFAULT when logging std::to_string(NAN)

2018-12-06 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86274

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|7.4 |7.5

[Bug tree-optimization/86274] [7 Regression] SEGFAULT when logging std::to_string(NAN)

2018-07-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86274

Martin Sebor  changed:

   What|Removed |Added

Summary|[7/8 Regression] SEGFAULT   |[7 Regression] SEGFAULT
   |when logging|when logging
   |std::to_string(NAN) |std::to_string(NAN)

--- Comment #20 from Martin Sebor  ---
Backported to GCC 8 in r262661.