https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103492

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
reduced testcase for clang's warning:
struct f
{
    unsigned a:2;
    unsigned b:(32-2);
};

int g(struct f *b)
{
    switch (b->a)
    {
        case 0:
          return 2;
        case 1:
          return 3;
        case 2:
          return 5;
        case 3:
          return 1;
    }
}

Reply via email to