https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108887
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #3) > I think we may get around with only turning the node back to non-declaration > by calling n->reset()? It seems I also need to n->remove_from_same_comdat_group(). Should reset() do that? What about all the other things that remove() does before actually freeing the node? Would setting n->type to SYMTAB_SYMBOL be a suitable way of marking it as dead?