From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 70C4D3858C50; Thu, 4 Apr 2024 14:22:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 70C4D3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712240550; bh=JTtMPv6q3G9xqkaXOP5B/sxJb9WrcGs5xF57pivC8IE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=htaXOZ1PImzLZSsrjIuYI88ri0KkNFyHgcRjkOK7UguDoPR5xCo8KkXH7OiyFd51v sAa9pLRORhJkn06AtTLj0Vwe9sW8WT4ir7+BmCco9XmPmWLaWnSh0rXkyKyuAGVVF6 HeSwa8121B9q4aKo5QR9HneUGcwQ+Mv1Xea4raAk= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114585] Incorrect boolean value with O2/O3 optimisation Date: Thu, 04 Apr 2024 14:22:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D114585 --- Comment #2 from Jonathan Wakely --- The bug reporting guidelines you were asked to read say to try -fsanitize=3Dundefined and if you'd done that you'd have seen errors: https://godbolt.org/z/bscj8q9rr=