https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89711
--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Richard Biener from comment #4) > Ah, the target: > > /* Build result decl and add to function_decl. */ > t = build_decl (UNKNOWN_LOCATION, RESULT_DECL, NULL_TREE, ptr_type_node); > DECL_ARTIFICIAL (t) = 1; > DECL_IGNORED_P (t) = 1; > DECL_RESULT (decl) = t; > > fails to set DECL_CONTEXT. But I wonder whether we need a result decl at all > here. Fix: I guess yes as void * is expected as return value of ifunc resolver.