From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9F8843858C52; Thu, 10 Nov 2022 20:20:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9F8843858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668111628; bh=le81flcfaZbCs9I0QmbIaPJvonNIU5GYLHu4lej2aZQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HOpZJyB+JJps8pAIxyPrZSrL9x4ZnrwyLWl8myfagJlLkL/PsaipV9LxQKI/vpYNW FAfZzS3NWDKfcrf8+TQcd0WEtPGfUaYyjJ9CbvulVaxM/5pnvayhRxEQ+w40aBqJnI PnUJXAcUy8pEHBUv9ia8IP1yabWtkxLiCP12u49U= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107622] Missing optimization of switch-statement Date: Thu, 10 Nov 2022 20:20:28 +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: 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=3D107622 --- Comment #1 from Andrew Pinski --- > In the following example the default-case=20 Yes it can. You can pass a 0xf to that function and still have well defined behavior.=