From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 25A5A3858C41; Thu, 29 Jun 2023 14:52:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 25A5A3858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688050335; bh=4elwD1FJxAdBPHfBgVHSU24t/1clsmh9tZOqBzt6+sw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZYNi8HKcVPT389rY6lxWJGw9sJtty8p9BT/lTtbV0xzUpavi8LWN+Rx/4iNrJS5Rw 055nQOwCrxqgeCxGvCXPrWEOJFoJrMzJA4zTozl/SeRLDYSba81yN35cMYRh0nMjzf uwn+rX9sunjlDbWfm7EAzrxYBgT6o9BAWBdeUpCg= From: "wolter.hellmundvega at tevva dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/38341] Wrong warning comparison of promoted ~unsigned with unsigned Date: Thu, 29 Jun 2023 14:52:13 +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: 4.8.2 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: minor X-Bugzilla-Who: wolter.hellmundvega at tevva dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: DUPLICATE 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: 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=3D38341 wolter.hellmundvega at tevva dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |wolter.hellmundvega at tev= va dot c | |om --- Comment #14 from wolter.hellmundvega at tevva dot com --- I'm not sure this is fixed, please correct me if wrong, but #include #include int main(void) { const uint8_t u =3D 0U; const uint8_t y =3D (uint8_t) ~u; return ((uint8_t) u !=3D (uint8_t) ~y); } gives warning test.c: In function =E2=80=98main=E2=80=99: test.c:9:25: warning: comparison of promoted bitwise complement of an unsigned value with unsigned [-Wsign-compare] 9 | return ((uint8_t) u !=3D (uint8_t) ~y); | ^~ Does this not mean that this issue is still present?=