From: Richard Biener Date: Fri, 25 May 2018 09:40:38 +0000 (+0000) Subject: re PR c++/85912 (-fdump-lang-raw ICE on valid code) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bcf253d51e5e5f24eee3724cd46438948b5635f8;p=gcc.git re PR c++/85912 (-fdump-lang-raw ICE on valid code) 2018-05-25 Richard Biener PR c++/85912 * tree-dump.c (dequeue_and_dump): Remove access to removed operand 2 of a SWITCH_EXPR. From-SVN: r260744 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 45566e6a13a..5772452ca21 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-05-25 Richard Biener + + PR c++/85912 + * tree-dump.c (dequeue_and_dump): Remove access to removed + operand 2 of a SWITCH_EXPR. + 2018-05-25 Richard Sandiford * doc/sourcebuild.texi (vect_double_cond_arith): Include 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: {