https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105600
--- Comment #19 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Martin Liska <mar...@gcc.gnu.org>: https://gcc.gnu.org/g:3f1637f8b17ded9e08841abc1182dcde0e35e660 commit r11-10089-g3f1637f8b17ded9e08841abc1182dcde0e35e660 Author: Martin Liska <mli...@suse.cz> Date: Wed May 18 15:07:53 2022 +0200 ipa-icf: skip variables with body_removed Similarly to cgraph_nodes, it may happen that body_removed is set during merging of symbols. PR ipa/105600 gcc/ChangeLog: * ipa-icf.c (sem_item_optimizer::filter_removed_items): Skip variables with body_removed. (cherry picked from commit 31ce821a790caec8a2849dd67a9847e78a33d14c)