https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97565
--- Comment #11 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:3b0c38012093078549811ae1ca0215d1047a2be2 commit r10-10061-g3b0c38012093078549811ae1ca0215d1047a2be2 Author: Richard Biener <rguent...@suse.de> Date: Mon Aug 23 15:37:48 2021 +0200 ipa/97565 - fix IPA PTA body availability check Looks like the existing check using has_gimple_body_p isn't enough at LTRANS time but I need to check in_other_partition as well. 2021-08-23 Richard Biener <rguent...@suse.de> PR ipa/97565 * tree-ssa-structalias.c (ipa_pta_execute): Check in_other_partition in addition to has_gimple_body. * g++.dg/lto/pr97565_0.C: New testcase. * g++.dg/lto/pr97565_1.C: Likewise. (cherry picked from commit 0230e69a3fabe6ad1d80cdf308ad1bf1934c4381)