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

            Bug ID: 64068
           Summary: [5 Regression] ICE: in remove_unreachable_nodes, at
                    ipa.c:546
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
                CC: marxin at gcc dot gnu.org

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

Running the Boost testsuite shows:

 % g++ -c -O2 -std=c++11 -w rule4.ii
rule4.ii:1265:15: internal compiler error: in remove_unreachable_nodes, at
ipa.c:546
               }
               ^
0xaf1cbb symbol_table::remove_unreachable_nodes(bool, _IO_FILE*)
        ../../gcc/gcc/ipa.c:546
0x1272dbc ipa_inline
        ../../gcc/gcc/ipa-inline.c:2193
0x1272dbc execute
        ../../gcc/gcc/ipa-inline.c:2558
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

Adding -fno-ipa-icf fixes the issue.

Reply via email to