https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101313
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[12 regression] ICE: tree |ICE: tree check: expected |check: expected class |class ‘type’, have |‘type’, have ‘exceptional’ |‘exceptional’ (error_mark) |(error_mark) in |in count_type_elements, at |count_type_elements, at |expr.c:6273 |expr.c:6273 | --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to John X from comment #0) > $ gcc-sp11 test.c > test.c:7:15: error: field ‘x’ has incomplete type > 7 | enum test x; > | ^ > test.c:21: confused by earlier errors, bailing out This is ICE just hidden for release checking if there was a sorry/error before hand. So this is not a regression from GCC 11.