From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1CE0C3857C40; Fri, 6 Oct 2023 15:02:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1CE0C3857C40 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696604563; bh=DmDQZ79jmGOdpdBSpd2OlIjOK4Cf1fM81fckDTBLZ/E=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fu1guMyyhHCdD3PMfvNXHtcOegHd8NLoG7AsqRtxGNylOga9BIFH+sBN81mPsnA6X 2Zs72DFRkASYlEOKS0r3WnlDQXVIkazjRu4ERSemVFVVmJPQr9iF1e+BPTMbv+uY9h 92GyG1O47O7Z0hLOwGExdb6PmamlmS+UuOy0krJc= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111714] Strange behavior when casting std::size_t to bool, UB or compiler bug? Date: Fri, 06 Oct 2023 15:02:42 +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: 9.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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=3D111714 --- Comment #1 from Richard Biener --- looks like a bug in GCC 9.x, note that's EOL and thus will receive no fixes= .=20 You can try to bisect where it was fixed since GCC 10.1 seems to work. The= re might be a duplicate fixed bugreport for this.=