https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91819
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |needs-bisection Status|UNCONFIRMED |NEW Last reconfirmed| |2019-09-19 Target Milestone|--- |10.0 Summary|ICE when iterating over |[10 Regression] ICE when |enum values |iterating over enum values Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Confirmed. t.ii: In function ‘int main()’: t.ii:15:29: internal compiler error: Segmentation fault 15 | for (Foo f = a; f <= b; f++) { | ^~ 0x14b0c1f crash_signal ../../src/trunk/gcc/toplev.c:326 0x8ff84b build_new_op_1 ../../src/trunk/gcc/cp/call.c:5933 0x9008aa build_new_op(op_location_t const&, tree_code, int, tree_node*, tree_node*, tree_node*, tree_node**, int) ../../src/trunk/gcc/cp/call.c:6278 0xc38922 build_x_unary_op(unsigned int, tree_code, cp_expr, int) ../../src/trunk/gcc/cp/typeck.c:5783 0xbd1bc4 finish_increment_expr(cp_expr, tree_code) ../../src/trunk/gcc/cp/semantics.c:2702 0xac961a cp_parser_postfix_expression ../../src/trunk/gcc/cp/parser.c:7462