https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65465
--- Comment #1 from Khem Raj <raj.khem at gmail dot com> --- I could bisect it to this commit being the faulty one. commit 9f27b0caacbfc21963098a6d8e305c148ac8661a Author: hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Fri Mar 13 06:30:04 2015 +0000 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they are building; for methods check ODR type of class they belong to if they may lead to a polymorphic call. (sem_function::compare_polymorphic_p): Be bit smarter about testing when function may lead to a polymorphic call. (sem_function::compare_type_list): Remove. (sem_variable::equals): Update use of compatible_types_p. (sem_variable::parse_tree_refs): Remove. (sem_item_optimizer::filter_removed_items): Do not filter out CXX cdtor. * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic matching here. (func_checker::compatible_polymorphic_types_p): Break out from ... (unc_checker::compatible_types_p): ... here. * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p): Declare. (unc_checker::compatible_types_p): Update. * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections): Remove. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@221406 138bc75d-0d04-0410-961f-82ee72b054a4 :040000 040000 39d3d7e2cac79bad892c3d1bf43e826fad560652 6cf9cb65c0155fb7286f5e100790d605794027b1 M gcc