[Bug c++/98043] [8/9/10 Regression] ICE ‘verify_gimple’ failed since r5-3726-g083e891e69429f93b958f6c18e2d52f515bae572

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Dec 7 21:08:53 GMT 2020


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.


More information about the Gcc-bugs mailing list