https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125553
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:a62132ff21b6cec68bbf27fc5802b4e0e381920e commit r17-1225-ga62132ff21b6cec68bbf27fc5802b4e0e381920e 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.
