https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119067
--- Comment #12 from GCC 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:f22e89167b3abfbf6d67f42fc4d689d8ffdc1810 commit r15-7790-gf22e89167b3abfbf6d67f42fc4d689d8ffdc1810 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.