From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 79F203858C39; Tue, 9 Apr 2024 13:54:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 79F203858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712670892; bh=Ud+rWW6fTgOxTkS7u2IHO4UurHP8ICyN28N7H4Iai+M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UCSPNmD4i4KFo98jKNGxxQbabJjPhClxnseFF7Kc2zk57iz10Cjd3wggDMWVtkK62 yvMdnsc1+m/5NLgPczvPRjXBSqG8vPTMC2AjV+EgXvo9qY3XBnAL50/in524OVwZCs kkF+vsU62Fo+5/jP9FHqvtMrmlE3wUObIQRRYJco= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/114657] Invalid type conversion from some _BitInt bit-fields Date: Tue, 09 Apr 2024 13:54:51 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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: 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=3D114657 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org, | |jsm28 at gcc dot gnu.org --- Comment #1 from Jakub Jelinek --- I believe Joseph said this isn't well specified in the C standard, see https://gcc.gnu.org/pipermail/gcc-patches/2023-July/625765.html If you use something like + 0uwb it should be the type after the integral promotions and so what the standard specifies for integral promotions of the _BitInt bit-fields.=