https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66363
Bug ID: 66363 Summary: ICE in modified test inline-36.c Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: vogt at linux dot vnet.ibm.com Target Milestone: --- This small test program derived from gcc.dg/inline-39.c (by adding the inline keyword) exposes an ICE on s390x, but this may be/probably is a problem on all platforms: -- snip -- int g; inline __attribute__((always_inline)) void bar (void) { g++; } void foo2 (void) { bar(); } -- snip -- Compiling with "-O2 -fdisable-tree-einline=foo2 -fdisable-ipa-inline" results in an ICE: -- snip -- cc1: note: disable pass tree-einline for function foo2 cc1: note: disable pass ipa-inline for functions in the range of [0, 4294967295] bar/1 (bar) @0x3fff0631300 Type: function definition analyzed Visibility: external public References: g/0 (read)g/0 (write) Referring: Availability: available First run: 0 Function flags: body nonfreeing_fn Called by: Calls: ice1.c:12:1: internal compiler error: nodes with unreleased memory found } ^ 0x804d6c41 symbol_table::compile() ../../gcc/cgraphunit.c:2413 0x804d6d01 symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.c:2460 0x8029226b c_write_global_declarations() ../../gcc/c/c-decl.c:10824 -- snip --