From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 79BEF3858C2A; Fri, 19 Jan 2024 18:10:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 79BEF3858C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705687843; bh=oP/BnzfhwGF3+lUSalmffP33cYezFWyGTcM4PYa79rk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HKstWCassOHLk+dx0vur8+Zn3wxsD/cjmI78dYj3CEl8h5nMMsdBixMFJOgVAur/v qbSDCO8B4p+BhEfr4KopOfijoBkvWtVYFBaV4StB0797xDH22ZfSy2bwhNZgAWdD0S /kQczszG1fa01Ro9pDvabd4QNszIZnQjZn9A20Ts= From: "uecker at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/113492] [14 Regression] ICE: in composite_type_internal, at c/c-typeck.cc:557 with -std=c2x -funsigned-bitfields since r14-6808 Date: Fri, 19 Jan 2024 18:10: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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: uecker at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D113492 uecker at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |uecker at gcc dot gnu.org --- Comment #2 from uecker at gcc dot gnu.org --- I agree that "int:3" with -funsigned-bitfields should produce a type which = is compatible to one with "unsigned:3" and that forming a composite type has = to work. I am not entirely sure this should be considered a regression as this C23 feature did not exist before (but was rejected and did not ICE). Anyway, I will look at this and post a patch. Thanks for reporting.=