https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70273
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Richard Biener from comment #6) > (In reply to Jakub Jelinek from comment #5) > > Or better yet decide whether to walk the initializers or not based on > > !gimple_body (fndecl) && !fun->cfg ? > > or make the flag a tri-state and if we compute it before (during the > tree-inline.c walk) then set it from there to avoid redundant work. Is cgraph_finalize_function () time early enough for C++ cloning?