https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88235
--- Comment #3 from Martin Jambor <jamborm at gcc dot gnu.org> --- Created attachment 45841 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45841&action=edit Heavy handed fix This patch fixes the verification because it stores to cgraph_node information that the node is an expanded thunk. It is a fairly huge change just to make a verifier shut up, but I cannot think of another way and I always disliked the node->thunk.thunk_p testa and wanted to replace them with node->thunk_p () call, so this is a good excuse. Not sure if we want it for GCC 9 though (if at all, of course).