From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F324F3858403; Sun, 24 Mar 2024 22:47:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F324F3858403 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711320437; bh=7CDPcBb/+HmTzjalj2LQ7XgEErKzLq4R630JOh1JbNM=; h=From:To:Subject:Date:From; b=Zbkz+NdcIT+8uAp3DuryStpSmjwcbJhMxFQDV91nqaHiN6MVWhYZkrEESLFsF6F8q pI05/TsWVvCFUJM5j59HZr2/Et2OgPha4/Wf/tEvgdeAxwtpj3cbgzIPW+5vD2m4pJ c7pgewBS+R0sxfueeisJruR3sKG476swF6EbQQSY= From: "Alexandre.BUSTICO at enac dot fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114451] New: regression : ICE on switch over enum class Date: Sun, 24 Mar 2024 22:47:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: Alexandre.BUSTICO at enac dot fr 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D114451 Bug ID: 114451 Summary: regression : ICE on switch over enum class Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Alexandre.BUSTICO at enac dot fr Target Milestone: --- Same bug had been reported as BugID 103825 for gcc12.0.0 The bug has been f= ixed for subsequent gcc version : 12.2, 13.1 and 13.2 does not trigger the bug. = The bug is exhibited again with gcc14.0.0 devel. code that trigger ICE :=20 enum class En {A}; struct St {En field :1;}; int main(void) { volatile St s =3D {.field =3D En::A}; switch(s.field) { case En::A : break; } } error message : : In function 'int main()': :4:5: error: type precision mismatch in switch statement 4 | int main(void) | ^~~~ switch (retval.0) , case 0: > :4:5: internal compiler error: 'verify_gimple' failed Please submit a full bug report, with preprocessed source (by using -freport-bug). See for instructions. Compiler returned: 1 gotbolt link : https://compiler-explorer.com/z/Eh39WKvxo=