re PR c++/85912 (-fdump-lang-raw ICE on valid code)
authorRichard Biener <rguenther@suse.de>
Fri, 25 May 2018 09:40:38 +0000 (09:40 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 25 May 2018 09:40:38 +0000 (09:40 +0000)
2018-05-25  Richard Biener  <rguenther@suse.de>

PR c++/85912
* tree-dump.c (dequeue_and_dump): Remove access to removed
operand 2 of a SWITCH_EXPR.

From-SVN: r260744

gcc/ChangeLog
gcc/tree-dump.c

index 45566e6a13a5114155334c6461069a5bbf3d3880..5772452ca21fc09ef60502ff9c791c830c57b9c6 100644 (file)
@@ -1,3 +1,9 @@
+2018-05-25  Richard Biener  <rguenther@suse.de>
+
+       PR c++/85912
+       * tree-dump.c (dequeue_and_dump): Remove access to removed
+       operand 2 of a SWITCH_EXPR.
+
 2018-05-25  Richard Sandiford  <richard.sandiford@linaro.org>
 
        * doc/sourcebuild.texi (vect_double_cond_arith): Include
index bc3e3a9f43352b9620fb1ab24e4aef0ea36052dc..fe3cc12bf235d6c55987681b346004dcb9487622 100644 (file)
@@ -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:
       {