https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96482
--- Comment #23 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Martin Liska <mar...@gcc.gnu.org>: https://gcc.gnu.org/g:4a2371497e9bed64aa4f46169127f3ea8e32e726 commit r10-8618-g4a2371497e9bed64aa4f46169127f3ea8e32e726 Author: Martin Liska <mli...@suse.cz> Date: Thu Aug 13 09:38:41 2020 +0200 ipa: fix ICE in get_default_value The patch aligns code with ipcp_bits_lattice::set_to_constant where we properly mask m_value with m_mask. The same should be done here. gcc/ChangeLog: PR ipa/96482 * ipa-cp.c (ipcp_bits_lattice::meet_with_1): Mask m_value with m_mask. gcc/testsuite/ChangeLog: PR ipa/96482 * gcc.dg/ipa/pr96482-2.c: New test. (cherry picked from commit f91770216eade83f068528c1e4f00e2ac3b23044)