https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66468
--- Comment #10 from Jason Merrill <jason at gcc dot gnu.org> --- (In reply to Aldy Hernandez from comment #9) > Do you think perhaps we could diagnose this sort of problem earlier so > it doesn't show up (confusingly) in dwarf2out land? I'm not sure where to check that outside dwarf2out. 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.