https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119067
--- Comment #14 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:85ed633f26c725bbe5c3a3c6fceada637bf33f7c commit r14-11517-g85ed633f26c725bbe5c3a3c6fceada637bf33f7c Author: Richard Biener <rguent...@suse.de> Date: Mon Mar 3 09:54:15 2025 +0100 ipa/119067 - bogus TYPE_PRECISION check on VECTOR_TYPE odr_types_equivalent_p can end up using TYPE_PRECISION on vector types which is a no-go. The following instead uses TYPE_VECTOR_SUBPARTS for vector types so we also end up comparing the number of vector elements. PR ipa/119067 * ipa-devirt.cc (odr_types_equivalent_p): Check TYPE_VECTOR_SUBPARTS for vectors. * g++.dg/lto/pr119067_0.C: New testcase. * g++.dg/lto/pr119067_1.C: Likewise. (cherry picked from commit f22e89167b3abfbf6d67f42fc4d689d8ffdc1810)