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

            Bug ID: 80249
           Summary: Failed to build SPEC 2006 483.xalancbmk with
                    -fdump-tree-fre
           Product: gcc
           Version: 7.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sudi.das at arm dot com
  Target Milestone: ---

Created attachment 41071
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41071&action=edit
Reduced testcase

An ICE occurs while building 483.xalancbmk in SPEC2006 with the flag
-fdump-tree-fre (while compiling TokenFactory.cpp)

The attached test case has been reduced from it. It fails with both x86-64 and
AArch64 with the following command :

g++ -O3 -fdump-tree-fre reduced.cpp

reduced.cpp: In member function 'xercesc_2_5::Token*
xercesc_2_5::TokenFactory::getGraphemePattern()':
reduced.cpp:91:8: internal compiler error: in
dump_possible_polymorphic_call_targets, at ipa-devirt.c:3370
 Token* TokenFactory::getGraphemePattern() {
        ^~~~~~~~~~~~
0xb6eb3e dump_possible_polymorphic_call_targets(_IO_FILE*, tree_node*, long,
ipa_polymorphic_call_context const&)
        /src/gcc/gcc/ipa-devirt.c:3370
0xf45739 eliminate_dom_walker::before_dom_children(basic_block_def*)
        /src/gcc/gcc/tree-ssa-pre.c:4607
0x138620e dom_walker::walk(basic_block_def*)
        /src/gcc/gcc/domwalk.c:265
0xf466f7 eliminate
        /src/gcc/gcc/tree-ssa-pre.c:4763
0xf469b3 execute
        /src/gcc/gcc/tree-ssa-pre.c:5197

Reply via email to