------- Comment #8 from reichelt at gcc dot gnu dot org 2006-07-21 10:05 ------- Alas there's some fallout from the fix. The first issue has been fixed (see comment #5 and #7), another problem remains, though (see also comment #6):
==================== void foo() { try { throw; } catch () {} } ==================== bug.cc: In function 'void foo()': bug.cc:4: error: expected type-specifier before ')' token bug.cc:4: internal compiler error: Segmentation fault Please submit a full bug report, [etc.] The sefault happens deep in the middle-end: #0 remove_useless_stmts_1 (tp=0x2aaaaaf831f0, data=0x7fffffd8b670) at tree-iterator.h:93 #1 0x0000000000546aa4 in remove_useless_stmts_1 (tp=<value optimized out>, data=0x7fffffd8b670) at ../../gcc/gcc/tree-cfg.c:1915 #2 0x0000000000546b55 in remove_useless_stmts_1 (tp=0x2aaaaaf7bf90, data=0x7fffffd8b670) at ../../gcc/gcc/tree-cfg.c:1741 #3 0x000000000054775d in remove_useless_stmts () at ../../gcc/gcc/tree-cfg.c:1949 #4 0x00000000008981ae in execute_one_pass (pass=0xc78700) at ../../gcc/gcc/passes.c:864 #5 0x000000000089831c in execute_pass_list (pass=0xc78700) at ../../gcc/gcc/passes.c:911 #6 0x000000000055f359 in tree_lowering_passes (fn=<value optimized out>) at ../../gcc/gcc/tree-optimize.c:324 #7 0x00000000008e7a78 in cgraph_lower_function (node=0x2aaaaaf7d790) at ../../gcc/gcc/cgraphunit.c:448 #8 0x00000000008e8697 in cgraph_analyze_function (node=0x2aaaaaf7d790) at ../../gcc/gcc/cgraphunit.c:919 -- reichelt at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|FIXED | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28250