https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111048
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:f5f47cc1ce75b00427756939a2dab94d3d125f6a commit r14-3319-gf5f47cc1ce75b00427756939a2dab94d3d125f6a Author: Richard Biener <rguent...@suse.de> Date: Fri Aug 18 09:41:56 2023 +0200 tree-optimization/111048 - avoid flawed logic in fold_vec_perm The following avoids running into somehow flawed logic in fold_vec_perm for non-VLA vectors. PR tree-optimization/111048 * fold-const.cc (fold_vec_perm_cst): Check for non-VLA vectors first. * gcc.dg/torture/pr111048.c: New testcase.