https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61324
Bug ID: 61324 Summary: [4.10 Regression] ICE: SIGSEGV at ipa-comdats.c:321 with -fno-use-cxa-atexit -fkeep-inline-functions Product: gcc Version: 4.10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 32857 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32857&action=edit reduced testcase Compiler output: $ gcc -O -fno-use-cxa-atexit -fkeep-inline-functions testcase.C ==21710== Invalid read of size 8 ==21710== at 0x156AD6D: (anonymous namespace)::pass_ipa_comdats::execute(function*) (ipa-comdats.c:321) ==21710== by 0xC15D37: execute_one_pass(opt_pass*) (passes.c:2180) ==21710== by 0xC167CA: execute_ipa_pass_list(opt_pass*) (passes.c:2571) ==21710== by 0x94CA46: compile() (cgraphunit.c:2093) ==21710== by 0x94D484: finalize_compilation_unit() (cgraphunit.c:2338) ==21710== by 0x72A27E: cp_write_global_declarations() (decl2.c:4632) ==21710== by 0xD10B8C: compile_file() (toplev.c:562) ==21710== by 0xD12BC4: toplev_main(int, char**) (toplev.c:1915) ==21710== by 0x5A46BF4: (below main) (in /lib64/libc-2.17.so) ==21710== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==21710== testcase.C:11:4: internal compiler error: Segmentation fault S s; ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Tested revisions: r210922 - ICE 4_9 r210572 - OK