I will commit the following as obvious to trunk and branch. Richard.
2018-05-25 Richard Biener <rguent...@suse.de> PR c++/85912 * tree-dump.c (dequeue_and_dump): Remove access to removed operand 2 of a SWITCH_EXPR. diff --git a/gcc/tree-dump.c b/gcc/tree-dump.c index bc3e3a9f433..fe3cc12bf23 100644 --- a/gcc/tree-dump.c +++ b/gcc/tree-dump.c @@ -683,10 +683,6 @@ dequeue_and_dump (dump_info_p di) case SWITCH_EXPR: dump_child ("cond", TREE_OPERAND (t, 0)); dump_child ("body", TREE_OPERAND (t, 1)); - if (TREE_OPERAND (t, 2)) - { - dump_child ("labl", TREE_OPERAND (t,2)); - } break; case OMP_CLAUSE: {