Re: [PATCH] c++: Fix error recovery ICE [PR112365]

2023-11-16 Thread Jason Merrill
On 11/5/23 12:42, Jakub Jelinek wrote: Hi! check_field_decls for DECL_C_BIT_FIELD FIELD_DECLs with error_mark_node TREE_TYPE continues early and doesn't call check_bitfield_decl which would either set DECL_BIT_FIELD, or clear DECL_C_BIT_FIELD. So, the following testcase ICEs after emitting tons

[PATCH] c++: Fix error recovery ICE [PR112365]

2023-11-05 Thread Jakub Jelinek
Hi! check_field_decls for DECL_C_BIT_FIELD FIELD_DECLs with error_mark_node TREE_TYPE continues early and doesn't call check_bitfield_decl which would either set DECL_BIT_FIELD, or clear DECL_C_BIT_FIELD. So, the following testcase ICEs after emitting tons of errors, because SET_DECL_FIELD_CXX_ZE