public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/86274] [7 Regression] SEGFAULT when logging std::to_string(NAN)
[not found] <bug-86274-4@http.gcc.gnu.org/bugzilla/>
@ 2024-01-01 3:46 ` jlame646 at gmail dot com
0 siblings, 0 replies; only message in thread
From: jlame646 at gmail dot com @ 2024-01-01 3:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86274
Jason Liam <jlame646 at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jlame646 at gmail dot com
--- Comment #22 from Jason Liam <jlame646 at gmail dot com> ---
Same issue. But also seg faults with o4 and gcc 7.5
https://godbolt.org/z/G7G7nx1Tf
#include <cmath>
#include <iostream>
#include <limits>
#include <string>
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';
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-01 3:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-86274-4@http.gcc.gnu.org/bugzilla/>
2024-01-01 3:46 ` [Bug tree-optimization/86274] [7 Regression] SEGFAULT when logging std::to_string(NAN) jlame646 at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).