[Bug c++/81702] [7/8 Regression] ICE in gimple_get_virt_method_for_vtable

adam at os dot inf.tu-dresden.de gcc-bugzilla@gcc.gnu.org
Sun Oct 29 10:03:00 GMT 2017


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

--- Comment #6 from Adam Lackorzynski <adam at os dot inf.tu-dresden.de> ---
So assuming removing the assert is ok, the following would address it:

--- gimple-fold.c       (revision 254205)
+++ gimple-fold.c       (working copy)
@@ -6439,7 +6439,6 @@
   gcc_assert (init);
   if (init == error_mark_node)
     {
-      gcc_assert (in_lto_p);
       /* Pass down that we lost track of the target.  */
       if (can_refer)
        *can_refer = false;

Do you think this could be applied?


More information about the Gcc-bugs mailing list