https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125121
--- Comment #4 from Josef Melcr <jmelcr at gcc dot gnu.org> --- Created attachment 64832 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64832&action=edit patch I am currently testing Looks like the main issue was a missing call to duplication hooks. Attached a patch I am testing which should fix the issue.
