https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118046
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alexandre Oliva <aol...@gcc.gnu.org>: https://gcc.gnu.org/g:2c55a891840425a98d951283273a11cf7bd31816 commit r15-6357-g2c55a891840425a98d951283273a11cf7bd31816 Author: Alexandre Oliva <ol...@adacore.com> Date: Wed Dec 18 22:17:02 2024 -0300 ifcombine field merge: do not follow a second conversion [PR118046] The testcase shows that conversions that would impact negatively the ifcombine field merging implementation won't always have been optimized out by the time we reach ifcombine. There's probably room to support multiple conversions with extra logic, but this workaround should avoid codegen errors until that logic is figured out. for gcc/ChangeLog PR tree-optimization/118046 * gimple-fold.cc (decode_field_reference): Don't follow more than one conversion. for gcc/testsuite/ChangeLog PR tree-optimization/118046 * gcc.dg/field-merge-14.c: New.