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

            Bug ID: 65008
           Summary: [5 Regression] ICE: in estimate_edge_growth, at
                    ipa-inline.h:298 with -O2
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz

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

Compiler output:
$ gcc -O2 testcase.C 
testcase.C: In constructor 'A::A()':
testcase.C:15:1: internal compiler error: in estimate_edge_growth, at
ipa-inline.h:298
 }
 ^
0xbfffe8 estimate_edge_growth
        /mnt/svn/gcc-trunk/gcc/ipa-inline.h:297
0xbfffe8 estimate_size_after_inlining(cgraph_node*, cgraph_edge*)
        /mnt/svn/gcc-trunk/gcc/ipa-inline-analysis.c:3892
0x1836925 caller_growth_limits
        /mnt/svn/gcc-trunk/gcc/ipa-inline.c:214
0x1836925 can_inline_edge_p
        /mnt/svn/gcc-trunk/gcc/ipa-inline.c:400
0x1837714 early_inline_small_functions
        /mnt/svn/gcc-trunk/gcc/ipa-inline.c:2465
0x1837714 early_inliner(function*)
        /mnt/svn/gcc-trunk/gcc/ipa-inline.c:2569
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.

Tested revisions:
r220566 - ICE
4_9 r219040 - OK

Reply via email to