https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66468
--- Comment #11 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Jason Merrill from comment #10) > I tried adding > > gcc_checking_assert (cgraph_function_possibly_inlined_p (decl)); > > in gen_inlined_subroutine_die to make the problem clearer, and I get a bunch > of new failures in the debug tests, so it doesn't seem to be limited to LTO. ...but changing that to gcc_checking_assert (DECL_ABSTRACT_P (decl) || cgraph_function_possibly_inlined_p (decl)); resolves the testsuite failures, and just fires on this LTO testcase.