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

2020-12-07 Thread Jason Merrill via Gcc-patches
On 12/4/20 10:46 PM, Marek Polacek wrote: On Wed, Dec 02, 2020 at 09:50:33PM -0500, Jason Merrill wrote: 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_PRECIS

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

2020-12-04 Thread Marek Polacek via Gcc-patches
On Wed, Dec 02, 2020 at 09:50:33PM -0500, Jason Merrill wrote: > 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