https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108887
--- Comment #8 from Jan Hubicka <hubicka at ucw dot cz> --- > Also, reset() is only defined in cgraph_node, and I need it to work on both > functions and variables. Aha, this is a good point. I forgot that. I will make reset() working on symbols in general. I think it is cleanest way ahead. > > Clearing n->type seems to confuse things that expect all symbols to be either > function or variable. Yes, SYMBOL is not really used in symbol table except for temporary situations during the construction. So I would indeed expect things to be confused.