https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119204
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:01f20dec2d9ef22b2744a059c75b962d14de4303 commit r14-11467-g01f20dec2d9ef22b2744a059c75b962d14de4303 Author: Richard Biener <rguent...@suse.de> Date: Tue Mar 11 08:40:44 2025 +0100 middle-end/119204 - ICE with strcspn folding The following makes sure to convert the folded expression to the original expression type. PR middle-end/119204 * builtins.cc (fold_builtin_strcspn): Preserve the original expression type. * gcc.dg/pr119204.c: New testcase. (cherry picked from commit 68932eeb38f66fbc0c3cf4b77ff7dde8a408f2e4)