From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id EA4A83858CDB; Mon, 17 Apr 2023 05:30:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EA4A83858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1681709439; bh=NxyeqBAnjHmaTDir0CJVscF1G061EZkFcaG3wfLDGIA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tMGQkWPNa3XMJMZbrytZL8LFL3OZJ7YnmGxt3NDQVUAaGGi0+CFHa8x3KtqmAVOsD LwosX+6Jlw3I764p0c90rouHrNPuJjnrQbVtXDpKItzu2XoqVXkf/1FPB9yjdae6QD +LJWsihyPvrYnNibG7TAMPBQ41ha4uFWK6wkeKFA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/109532] -fshort-enums does not pick smallest underlying type for scoped enum Date: Mon, 17 Apr 2023 05:30:39 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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=3D109532 --- Comment #4 from Andrew Pinski --- (In reply to Wilhelm M from comment #3) > Isn't this a case where the as-if rule kicks in? What rule is that? Scopped enums are different from unscopped ones here specifically as defined in the C++ standard.=