Re: C++ PATCH for c++/91819 - ICE with operator++ and enum.

2019-09-21 Thread Jason Merrill
On 9/19/19 3:40 PM, Marek Polacek wrote: This is an ICE that started with the recent r275745. The problem here is that for a POSTINCREMENT_EXPR build_new_op_1 is called with null arg2, so arg2_type is also null after 5819 tree arg2_type = arg2 ? unlowered_expr_type (arg2) : NULL_TREE; but t

C++ PATCH for c++/91819 - ICE with operator++ and enum.

2019-09-19 Thread Marek Polacek
This is an ICE that started with the recent r275745. The problem here is that for a POSTINCREMENT_EXPR build_new_op_1 is called with null arg2, so arg2_type is also null after 5819 tree arg2_type = arg2 ? unlowered_expr_type (arg2) : NULL_TREE; but then we make arg2 nonnull 5887 if (code ==