https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104851
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Xi Ruoyao <xry...@gcc.gnu.org>: https://gcc.gnu.org/g:1c7b110e1e44da0c93d0d011f5109c5d09bf4399 commit r12-7559-g1c7b110e1e44da0c93d0d011f5109c5d09bf4399 Author: Xi Ruoyao <xry...@mengyan1223.wang> Date: Wed Mar 9 11:46:03 2022 +0800 vect: fix out-of-bound access in supports_vec_convert_optab_p [PR 104851] Calling VECTOR_MODE_P with MAX_MACHINE_MODE has caused out-of-bound access. gcc/ PR tree-optimization/104851 * optabs-query.cc (supports_vec_convert_optab_p): Fix off-by-one error.