https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97947
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- We crash here 1143 /* Come here only for aggregates: records, arrays, unions, complex numbers 1144 and vectors. */ 1145 gcc_assert (code == ARRAY_TYPE 1146 || VECTOR_TYPE_P (type) 1147 || code == RECORD_TYPE 1148 || code == UNION_TYPE 1149 || code == COMPLEX_TYPE); because code == OPAQUE_TYPE.