On Wed, 18 Jan 2023, Marek Polacek via Gcc-patches wrote: > In this ICE-on-invalid, we crash on > > gcc_assert (INTEGRAL_TYPE_P (type)); > > in perform_integral_promotions, because a nullptr is an INTEGER_CST, > but not INTEGRAL_TYPE_P, and check_case_value is only checking the > former. In the test I'm testing other "shall be an integral constant > expression" contexts as well. > > Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk?
OK. (INTEGER_CST of pointer type is detected in c_add_case_label.) -- Joseph S. Myers jos...@codesourcery.com