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 tree-optimization/50602] ICE in tree_nrv, at tree-nrv.c:155 during large LTO build


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50602

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-10-04 11:03:58 UTC ---
#7  0x000000000075ac05 in tree_nrv () at ../../gcc/gcc/tree-nrv.c:155
155                     gcc_assert (ret_val == result);

(gdb) p ret_val
$3 = (tree_node *) 0x0

but ...

              ret_val = gimple_return_retval (stmt);
              if (ret_val)
                gcc_assert (ret_val == result);

so the assert is guarded against this case.


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