https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125553
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-16 branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:a55a425bde33b90f215abf079197771e2ba6f276 commit r16-9097-ga55a425bde33b90f215abf079197771e2ba6f276 Author: Richard Biener <[email protected]> Date: Tue Jun 2 14:03:24 2026 +0200 tree-optimization/125553 - ICE with VN trick The following avoids re-doing an earlier CSE when trying to handle a BIT_FIELD_REF as memory reference by combining it with a defining load. This might (as in this case) result in double-insertion to the VN hashtables which rightfully ICEs. PR tree-optimization/125553 * tree-ssa-sccvn.cc (visit_nary_op): Valueize the BIT_FIELD_REF operand before looking at its definition. * gcc.dg/torture/pr125553.c: New testcase. (cherry picked from commit a62132ff21b6cec68bbf27fc5802b4e0e381920e)
