http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48484
--- Comment #2 from davidxl <xinliangli at gmail dot com> 2011-04-08 19:33:16 UTC --- Reproduced. David (In reply to comment #0) > Created attachment 23902 [details] > auto-reduced testcase > > Compiler output: > $ gcc -O -finline-functions -finline-small-functions -Wuninitialized > testcase.C > testcase.C: In member function 'bool SQVM::FOREACH_OP(SQObjectPtr&, > SQObjectPtr&, SQObjectPtr&, SQObjectPtr&, long int, int, int&)': > testcase.C:53:19: warning: 'nrefidx' may be used uninitialized in this > function > [-Wuninitialized] > testcase.C:60:10: warning: 'idx' may be used uninitialized in this function > [-Wuninitialized] > testcase.C: In member function 'bool SQVM::Execute(SQObjectPtr&, long int, > long > int, long int, SQObjectPtr&, unsigned int, int)': > testcase.C:53:19: warning: 'nrefidx' may be used uninitialized in this > function > [-Wuninitialized] > testcase.C:49:5: note: 'nrefidx' was declared here > testcase.C:60:10: warning: 'idx' may be used uninitialized in this function > [-Wuninitialized] > testcase.C:59:4: note: 'idx' was declared here > testcase.C:67:3: internal compiler error: vector VEC(use_pred_info_t,base) > index domain error, in pred_chain_length_cmp at tree-ssa-uninit.c:1626 > Please submit a full bug report, > with preprocessed source if appropriate. > See <http://gcc.gnu.org/bugs.html> for instructions. > > #4 0x0000000000bdfa79 in vec_assert_fail (op=0x14b0858 "index", > struct_name=0x12fd7c7 "VEC(use_pred_info_t,base)", file=Unhandled dwarf > expression opcode 0xf3) at /mnt/svn/gcc-trunk/gcc/vec.c:524 > #5 0x00000000004bae5c in VEC_use_pred_info_t_base_index (line_=Unhandled > dwarf > expression opcode 0xf3) at /mnt/svn/gcc-trunk/gcc/tree-ssa-uninit.c:326 > #6 0x0000000000b4044b in pred_chain_length_cmp (p1=Unhandled dwarf expression > opcode 0xf3) at /mnt/svn/gcc-trunk/gcc/tree-ssa-uninit.c:1632 > #7 0x00007ffff649f0bb in msort_with_tmp () from /lib/libc.so.6 > #8 0x00007ffff649f510 in __GI_qsort_r.clone.0 () from /lib/libc.so.6 > #9 0x0000000000b42195 in normalize_preds (use_stmt=Unhandled dwarf expression > opcode 0xf3) at /mnt/svn/gcc-trunk/gcc/tree-ssa-uninit.c:1655 > #10 is_use_properly_guarded (use_stmt=Unhandled dwarf expression opcode 0xf3 > ) at /mnt/svn/gcc-trunk/gcc/tree-ssa-uninit.c:1817 > #11 0x0000000000b438a9 in find_uninit_use () at > /mnt/svn/gcc-trunk/gcc/tree-ssa-uninit.c:1878 > #12 warn_uninitialized_phi () at /mnt/svn/gcc-trunk/gcc/tree-ssa-uninit.c:1950 > #13 execute_late_warn_uninitialized () at > /mnt/svn/gcc-trunk/gcc/tree-ssa-uninit.c:2022 > #14 0x0000000000934a26 in execute_one_pass (pass=0x17c60a0) at > /mnt/svn/gcc-trunk/gcc/passes.c:1555 > #15 0x0000000000934d15 in execute_pass_list (pass=0x17c60a0) at > /mnt/svn/gcc-trunk/gcc/passes.c:1610 > #16 0x0000000000934d27 in execute_pass_list (pass=0x17c4d20) at > /mnt/svn/gcc-trunk/gcc/passes.c:1611 > #17 0x0000000000a78825 in tree_rest_of_compilation (fndecl=0x7ffff59d0900) at > /mnt/svn/gcc-trunk/gcc/tree-optimize.c:422 > #18 0x0000000000c43c97 in cgraph_expand_function (node=0x7ffff59df2c0) at > /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1580 > #19 0x0000000000c463dc in cgraph_expand_all_functions () at > /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1639 > #20 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1903 > #21 0x0000000000c4696a in cgraph_finalize_compilation_unit () at > /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1100 > #22 0x00000000005b6aa8 in cp_write_global_declarations () at > /mnt/svn/gcc-trunk/gcc/cp/decl2.c:4000 > #23 0x0000000000a2184d in compile_file (argc=17, argv=0x7fffffffdc38) at > /mnt/svn/gcc-trunk/gcc/toplev.c:591