https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98043
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
Summary|[10/11 Regression] ICE |[8/9/10/11 Regression] ICE
|‘verify_gimple’ failed |‘verify_gimple’ failed
|since |since
|r10-5122-g6fcb7ebb377f27c7 |r5-3726-g083e891e69429f93b9
| |58f6c18e2d52f515bae572
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The ICE is much older is you remove the for the ICE unnecessary C++20
initializer of the bitfield.
enum class B { A };
struct C { B c : 8; };
bool
foo (C x)
{
switch (x.c)
{
case B::A:
return false;
default:
return true;
}
}