https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97565
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-11 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:5bc33f0318152235ce10220f0d1a2e0c87bde9f1 commit r11-8897-g5bc33f0318152235ce10220f0d1a2e0c87bde9f1 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)