https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65549
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- So this should be more reproducible with -flto-partition=max and also with nested functions? I wonder if we need to call debug_hooks->function_decl for function decls in lto_read_decls similar to how we do for type_decls? At least with early debug we'd re-create a DIE for it at LTRANS time.