https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108445
--- Comment #5 from CVS 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:d4abe5c456a3023f61c3e053255b7dd72ca0d7ec commit r13-5242-gd4abe5c456a3023f61c3e053255b7dd72ca0d7ec Author: Richard Biener <rguent...@suse.de> Date: Wed Jan 18 14:54:33 2023 +0100 lto/108445 - avoid LTO decl wrapping being confused by tree sharing r13-4743 exposed more tree sharing which runs into a latent issue with LTO decl wrapping during streaming. The following adds a testcase triggering the issue. PR lto/108445 * gcc.dg/lto/pr108445_0.c: New testcase. * gcc.dg/lto/pr108445_1.c: Likewise.