From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2FEB5385841C; Tue, 9 Apr 2024 14:01:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2FEB5385841C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712671271; bh=ucl60CVl9Rb503TSnyt7f/05KgnEUosCIrvsSCrqJnw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MK8V2CRWUHz8olNkWw3KuKyXBucLAYzQKqmacdNWHimEiLLY1YjL3xeY/oU4mdIIA RRvwh0jEqhmzz7mzh19+sQHwmW9tTuDrjOOdLAg4RHGKOT7q7DRHYNNDd1aMgMzPRK 7zJkWD9Nx/8RZj9SYbZWwY6VnzuSkCVIrRIx5h2A= 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 14:01:10 +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: 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 --- Comment #2 from Jakub Jelinek --- In particular, 6.5.1.1/2 says "The type of the controlling expression is the type of the expression as if= it had undergone an lvalue conversion, array to pointer conversion, or functio= n to pointer conversion." but doesn't list integer promotions (if those were to occur, you'd e.g. nev= er be able to match a char, signed char, unsigned char, short, unsigned short types with _Generic because everything would be promoted to int.=