https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91819
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- The problem is that for POSTINCREMENT_EXPR build_new_op_1 is called with null arg2, so arg2_type is also null, but then we make arg2 nonnull 5887 if (code == POSTINCREMENT_EXPR || code == POSTDECREMENT_EXPR) 5888 arg2 = integer_zero_node; and so 5940 else if (! arg2 || ! CLASS_TYPE_P (arg2_type)) crashes.