From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A0EA2385828E; Fri, 6 Oct 2023 16:25:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0EA2385828E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696609531; bh=i3nbw8hKdKp+D5aYbP9Z0rIB61XFS3hLMDFm/QAVn0M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=V6HaigGnyR9Wa2q9J+03mtFejp1E577+J27obXYWuPI5v6yGjbPUJoQ7wQoWbLZvr k5oCYVl4tRdt+trGdDsv3ID2r2nchTNYjsoabHRfdDkNQZYO4gEpVDXqZP1u+dm4w1 Mej4EbfkTabrJbIanVJHE8KfFeEwrpjWSxBm3DEs= From: "carlosgalvezp at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111714] Strange behavior when casting std::size_t to bool, UB or compiler bug? Date: Fri, 06 Oct 2023 16:25:31 +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: 9.4.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: carlosgalvezp at gmail dot com 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 #3 from Carlos Galvez --- Thanks for the quick response! Unfortunately we are stuck on GCC 9 for reas= ons so I'll try to shuffle the code around a bit to make it work :)=