This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/85912] -fdump-lang-raw ICE on valid code


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85912

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Untested fix:

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:
       {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]