https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105140
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:c515adf5d339ad942207d9121cf49e5b6c84093e commit r10-10768-gc515adf5d339ad942207d9121cf49e5b6c84093e Author: Richard Biener <rguent...@suse.de> Date: Mon Apr 4 10:20:05 2022 +0200 middle-end/105140 - fix bogus recursion in fold_convertible_p fold_convertible_p expects an operand and a type to convert to but recurses with two vector component types. Fixed by allowing types instead of an operand as well. 2022-04-04 Richard Biener <rguent...@suse.de> PR middle-end/105140 * fold-const.c (fold_convertible_p): Allow a TYPE_P arg. * gcc.dg/pr105140.c: New testcase. (cherry picked from commit eaaf77dd85c333b116111bb1ae6c080154a4e411)