From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0CCD63858C83; Tue, 18 Oct 2022 14:13:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0CCD63858C83 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666102394; bh=J+krSXePohCpfAE+hPdcd7dYevXHh33/mrDE/ZPH6tk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wRtaZjwxNEaX79lTNe7b8XpcB+BBTpN89FdpqgL+34O8411qEgrQI9CXOTmMvIz9q j+UtRChNUyzb/VuJAPa0D+aaOB4sZy519vDmaA3Qop2CZ4IYvh0GvsBQP3tR76qM5V J7F3lhnvC8d8NdkSFK1fq0Ml7phFcyRSRmoWMK7s= From: "jsm28 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/36113] fix C enumerators Date: Tue, 18 Oct 2022 14:13: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.4.0 X-Bugzilla-Keywords: diagnostic, wrong-code X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jsm28 at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: target_milestone resolution bug_status 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=3D36113 Joseph S. Myers changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |13.0 Resolution|--- |FIXED Status|UNCONFIRMED |RESOLVED --- Comment #8 from Joseph S. Myers --- Fixed for GCC 13. (Where unsigned long is 64-bit, GCC may choose that inst= ead of unsigned long long for the underlying type of the enum, so you'll get a format checking warning in that case, but all the enum constants now have t= he enum type if any of them don't fit in int, in accordance with C2X.)=