https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114274
--- 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:48e114ee2a0d5b19796f4f03644d9d9925379e1f commit r16-7360-g48e114ee2a0d5b19796f4f03644d9d9925379e1f Author: Richard Biener <[email protected]> Date: Fri Feb 6 09:26:37 2026 +0100 tree-optimization/114274 - avoid stray BLOCK refrence from CSWTCH vars The following removes the location from CSWTCH variables which are DECL_IGNORED_P and have no DECL_CONTEXT. The location is currently taken from the gswitch statement and thus includes a BLOCK reference which can eventually be elided and GCd, causing later ICEs when ICF decides to merge the variable with some other. PR tree-optimization/114274 * tree-switch-conversion.cc (switch_conversion::build_one_array): Use UNKNOWN_LOCATION for the CSWTCH decl.
