[Bug lto/70187] New: [6 Regression] ICE (segfault) in lto1 with -Wsuggest-final-methods/-Wsuggest-final-types

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Mar 11 12:40:00 GMT 2016


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

            Bug ID: 70187
           Summary: [6 Regression] ICE (segfault) in lto1 with
                    -Wsuggest-final-methods/-Wsuggest-final-types
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus at gcc dot gnu.org
                CC: hubicka at gcc dot gnu.org
  Target Milestone: ---

Created attachment 37937
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37937&action=edit
testcase (test.ii)

g++ -c -w -r -nostdlib  -O2 -flto input26b.ii
g++ -Ofast -flto -Wsuggest-final-methods -Wsuggest-final-types input26b.o

ICEs with:

lto1: internal compiler error: Segmentation fault
0xa77adf crash_signal
        ../../gcc/toplev.c:335
0x886444 vec<cgraph_node*, va_heap, vl_embed>::operator[](unsigned int)
        ../../gcc/vec.h:714
0x886444 vec<cgraph_node*, va_heap, vl_ptr>::operator[](unsigned int)
        ../../gcc/vec.h:1180
0x886444 possible_polymorphic_call_targets(tree_node*, long,
ipa_polymorphic_call_context, bool*, void**, bool)
        ../../gcc/ipa-devirt.c:3181
0x888a7a possible_polymorphic_call_targets(cgraph_edge*, bool*, void**, bool)
        ../../gcc/ipa-utils.h:114
0x888a7a ipa_devirt
        ../../gcc/ipa-devirt.c:3576


Worked a few days ago with the trunk in the preliminary patch PR69630 comment 3
applied. (As that PR is fixed, my current trunk build has no extra patches
applied.)


More information about the Gcc-bugs mailing list