https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82737
Nathan Sidwell <nathan at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|marxin at gcc dot gnu.org |nathan at gcc dot gnu.org --- Comment #21 from Nathan Sidwell <nathan at gcc dot gnu.org> --- yeah, I messed up. I had presumed that once set, DECL_ASSEMBLER_NAME does not change. That is untrue. In this case it's even worse, in that DECL_ASSEMBLER_NAME is set on a new decl that duplicate_decl then deletes. This is a latent bug that never triggered on the old code, but would have left the global namespace pointing at dead storage.