From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BFE153858C35; Mon, 1 Jan 2024 03:46:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BFE153858C35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1704080783; bh=nePtHA130SncRZJFL3vz5l9ACkv57VYOQOXSAexqIVY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OC2uZ75BnL9Vps0QVuezx1YBK9QgUvPJbzpdk3ADYjRtPXwBDzF/vGhjnTmz97TJn 9UrYldT1aUrUhlHylEj7mUvrASdBH0q2R6EQoVxu7RPhtz50/d3xALxeOSifzf0VPk tmBkNHQXMgotxFSs58hIk+9q5ke+S42qgCQuA0yY= From: "jlame646 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/86274] [7 Regression] SEGFAULT when logging std::to_string(NAN) Date: Mon, 01 Jan 2024 03:46:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 8.1.1 X-Bugzilla-Keywords: patch, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jlame646 at gmail dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D86274 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 cr= ash } int main() { std::cout << std::to_string(INFINITY) << '\n'; }=