https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98043
--- Comment #8 from Marek Polacek <mpolacek at gcc dot gnu.org> --- (In reply to Ben Wiederhake from comment #7) > A testcase got added in PR 98043. Yay! > > The testcase contains a `default:` in the switch-case statement. Wasn't it > the case that the bug got triggered by a *lack* of `default:` case? No, it was about a type mismatch between the type of the controlling expression, and the type of the case value. Thanks for reporting this issue.