Re: [PATCH] c++: ICE with switch and scoped enum bit-fields [PR98043]

2020-12-02 Thread Jason Merrill via Gcc-patches
On 12/2/20 6:18 PM, Marek Polacek wrote: In this testcase we are crashing trying to gimplify a switch, because the types of the switch condition and case constants have different TYPE_PRECISIONs. This started with my r5-3726 fix: SWITCH_STMT_TYPE is supposed to be the original type of the switch

[PATCH] c++: ICE with switch and scoped enum bit-fields [PR98043]

2020-12-02 Thread Marek Polacek via Gcc-patches
In this testcase we are crashing trying to gimplify a switch, because the types of the switch condition and case constants have different TYPE_PRECISIONs. This started with my r5-3726 fix: SWITCH_STMT_TYPE is supposed to be the original type of the switch condition before any conversions, so in th