https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114501
--- Comment #15 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-13 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:4e49ae8d905d760e97d0c0310f40c7e3a0e4e9df commit r13-9512-g4e49ae8d905d760e97d0c0310f40c7e3a0e4e9df Author: Richard Biener <rguent...@suse.de> Date: Thu Mar 6 13:48:16 2025 +0100 lto/114501 - missed free-lang-data for CONSTRUCTOR index The following makes sure to also walk CONSTRUCTOR element indexes which can be FIELD_DECLs, referencing otherwise unused types we need to clean. walk_tree only walks CONSTRUCTOR element data. PR lto/114501 * ipa-free-lang-data.cc (find_decls_types_r): Explicitly handle CONSTRUCTORs as walk_tree handling of those is incomplete. * g++.dg/pr114501_0.C: New testcase. (cherry picked from commit fdd95e1cf29137a19baed25f8c817d320dfe63e3)